Skip to content

Commit

Permalink
Merge pull request #2 from takkii/develop
Browse files Browse the repository at this point in the history
Update.
  • Loading branch information
takkii authored Jul 2, 2024
2 parents 0734743 + 989c8ad commit 4981aac
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions lua/neoruby-debugger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ local function setup_rdbg_adapter(dap)
script = config.script
end

if config.bundle == 'bundle' then
if config.request == 'attach' then
args = {'-n', '--open', '--port', config.port, '-c', '--', 'bundle', 'exec', config.command, script}
elseif config.request == 'launch' then
args = {'-n', '--open', '--port', config.port, '-c', '--', 'bundle', 'exec', 'readapt', 'stdio'}
else
args = {'--open', '--port', config.port, '-c', '--', config.command, script}
end
Expand Down Expand Up @@ -307,9 +309,10 @@ local function setup_rdbg_configuration(dap)
type = 'ruby',
name = 'run rails:use readapt',
bundle = 'bundle',
request = 'attach',
command = 'readapt',
script = "stdio",
request = 'launch';
program = 'bundle';
programArgs = {'exec', 'rails', 's'};
useBundler = true;
port = 38698,
server = "127.0.0.1",
options = {
Expand All @@ -334,16 +337,17 @@ local function setup_rdbg_configuration(dap)
waiting = 1000,
},
{
-- Experimental feature
type = 'ruby',
name = 'run docker',
request = 'attach',
command = 'docker-compose',
script = "up",
name = 'run sinatra:use readapt',
bundle = 'bundle',
request = 'launch';
program = 'bundle';
programArgs = {'exec', 'rackup'};
useBundler = true;
port = 38698,
server = '127.0.0.1',
server = "127.0.0.1",
options = {
source_filetype = 'ruby';
source_filetype = 'ruby';
},
localfs = true,
waiting = 1000,
Expand Down

0 comments on commit 4981aac

Please sign in to comment.