-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Hey folks 👋
I've created a dap adapter / config that I could run a rails debugging flow but I don't know the best idea to integrate with nvim-dap-ruby
basically I did this:
dap.adapters.ruby = {
type = 'server';
port = "1234";
command = '/path/to/rails/app/bin/rdbg';
args = {"--open", "--port", "1234", "--"};
-- useBundler = true;
}
--
dap.configurations.ruby = {
{
type = 'ruby';
request = 'launch';
name = 'ruby debug: start rails';
command = 'bin/rails s';
useBundler = true;
},
}
With this config I could run the debugger BUT I needed to manually start the process on another terminal with rdbg --command --open --stop-at-load --port 1234 -- bin/rails s.
Any tips on how can I configure my adapter / configuration to execute this for me? 😄
Gravacao.de.Tela.2022-10-25.as.18.23.15.mov
this is the video of it working. one annoying stuff that I noted is that when I start the debug process, it looses the syntax highlights and IDK why.
Do u think it is feasible to run dap support for rails with debug gem like I tried to made?
betogrunkagbodji, maxkerp and vilionerikw
Metadata
Metadata
Assignees
Labels
No labels