nvim-dap-ruby icon indicating copy to clipboard operation
nvim-dap-ruby copied to clipboard

Breakpoints ignored without binding.b at start of script

Open rnestler opened this issue 2 years ago • 6 comments

If I don't have a binding.b at the start of my script, all further breakpoints are just ignored and just the whole script runs:

With binding.b

screenshot-20220628-113735

Without binding.b

screenshot-20220628-113804

I guess the reason is that rdbg is started with the -n flag which means it won't break at the start: https://github.com/suketa/nvim-dap-ruby/blob/84a2831109da438bbb4e5bff8851b4c4c8b9187c/lua/dap-ruby.lua#L70-L72

rnestler avatar Jun 28 '22 09:06 rnestler

Thank you for your information.

fixed by #16. Could you try the lates version?

suketa avatar Jul 03 '22 00:07 suketa

Ahhh this really messes things up for me. Basically means I have an infinite amount of steps to step over if I'm in anything remotely complex. Previously, it only stopped on my breakpoint. Now it stops right from execution. Unless I'm missing an obvious skip to breakpoint command...

Screen Shot 2022-07-03 at 15 01 49

olimorris avatar Jul 03 '22 14:07 olimorris

Unless I'm missing an obvious skip to breakpoint command...

Well try c for continue?

rnestler avatar Jul 03 '22 16:07 rnestler

Could you try :lua require'dap'.continue() again or bind key :lua require'dap'.continue() yourself?

suketa avatar Jul 04 '22 09:07 suketa

Could you try the lates version?

Now I have really strange behavior (but it may also be due to another update):

  • I add two breakpoints and start with :lua require'dap'.continue()
  • It will break on the first breakpoint I set, but then hide all the breakpoint
  • When I continue again it will also break at the second (now invisible breakpoint)
  • When I try to start it again it will fail to start with couldn't connect to 127.0.0.1:38698: ECONNREFUSED

How can I debug this further?

rnestler avatar Jul 04 '22 13:07 rnestler

I am having a similar issue when I try to debug a spec file, where it will stop on the first line but then not hit any breakpoints or binding.b if I continue

I don't see anything in DapShowLogs with setting to TRACE. Is there anything else I can do to debug this?

exosyphon avatar Jun 15 '23 05:06 exosyphon