Skip to content

Commit

Permalink
Merge pull request #6 from takkii/develop
Browse files Browse the repository at this point in the history
Update.
  • Loading branch information
takkii authored Jul 3, 2024
2 parents 5682047 + 94fd23a commit 8e984b8
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 8e984b8

Please sign in to comment.