Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting breakpoints/tracepoints in editor doesn't work #29

Open
simonrycroft opened this issue Aug 10, 2018 · 4 comments
Open

Setting breakpoints/tracepoints in editor doesn't work #29

simonrycroft opened this issue Aug 10, 2018 · 4 comments

Comments

@simonrycroft
Copy link

simonrycroft commented Aug 10, 2018

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

@sebdah
Copy link
Owner

sebdah commented Aug 27, 2018

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.

@simonrycroft
Copy link
Author

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

@esviai
Copy link

esviai commented Dec 6, 2020

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 😁

@niltooth
Copy link

having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants