vim-delve icon indicating copy to clipboard operation
vim-delve copied to clipboard

Setting breakpoints/tracepoints in editor doesn't work

Open simonrycroft opened this issue 7 years ago • 4 comments

If I set a breakpoint in the Delve window then code execution halts as expected. However, if I set the same breakpoint using :DlvAddBreakpoint it doesn't.

Looking at my application logs I can see the debug server is creating the breakpoint when using the Delve window e.g. created breakpoint: &api.Breakpoint{ID:1...} but not when setting it in the editor. So I assume the command is not sent when using the editor.

This is when connecting to a debug server running in a Docker container using :DlvConnect localhost:2345 apiVersion=2.

This is using:

Mac OS 10.12.6 NVIM v0.3.1 Delve 1.0.0-rc.2

simonrycroft avatar Aug 10 '18 11:08 simonrycroft

This is certainly an issue. The commands should be sent using the Delve connection instead of being issued directly. I won't have time to look into this right now. Any PRs for this are most welcome.

sebdah avatar Aug 27 '18 12:08 sebdah

Thanks for the reply. I may have some time to take a look later in the week.

simonrycroft avatar Aug 28 '18 08:08 simonrycroft

I don't know if it's fixed or not, new vim-delve user here, but I encounter the same problem, when I add the breakpoint from editor, it didn't stop at the newly assigned breakpoint. I need close the terminal buffer and reconnect delve for it to works. So perhaps for anyone encountering it, it might be a workaround for you 😁

esviai avatar Dec 06 '20 10:12 esviai

having the same issue

niltooth avatar Feb 24 '22 18:02 niltooth