From 94fd23a5947a96e8005eb652412ec8b184e2a14b Mon Sep 17 00:00:00 2001 From: Takayuki Kamiyama Date: Wed, 3 Jul 2024 09:35:40 +0900 Subject: [PATCH] Update. --- lua/neoruby-debugger.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/neoruby-debugger.lua b/lua/neoruby-debugger.lua index 1c7e831..2fba6df 100644 --- a/lua/neoruby-debugger.lua +++ b/lua/neoruby-debugger.lua @@ -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}