Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
takkii committed Jul 3, 2024
1 parent 5682047 commit 94fd23a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/neoruby-debugger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ local function setup_rdbg_adapter(dap)
script = config.script
end

if config.request == 'attach' then
if config.request == 'attach' and config.bundle == 'bundle' then
args = {'-n', '--open', '--port', config.port, '-c', '--', 'bundle', 'exec', config.command, script}
elseif config.request == 'launch' then
elseif config.request == 'launch' and config.bundle == 'bundle' then
args = {'-n', '--open', '--port', config.port, '-c', '--', 'bundle', 'exec', 'readapt', 'stdio'}
else
args = {'--open', '--port', config.port, '-c', '--', config.command, script}
Expand Down

0 comments on commit 94fd23a

Please sign in to comment.