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

debug: support data breakpoints (watchpoint) #3509

Open
ripplewang888 opened this issue Aug 28, 2024 · 4 comments
Open

debug: support data breakpoints (watchpoint) #3509

ripplewang888 opened this issue Aug 28, 2024 · 4 comments
Labels
Debug Issues related to the debugging functionality of the extension. FeatureRequest upstream-tools Issues that are caused by problems in the tools that the extension depends on.

Comments

@ripplewang888
Copy link

Is your feature request related to a problem? Please describe.
As gdb does, break at a watch point for when a variable value change. Delve support watch command, but I cant' execute this command
in vscode.

Describe the solution you'd like
(dlv) watch -rw b
Watchpoint b set at 0x556188
(dlv) l

how to do this in vscode? I want to set a watchpoint break.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@gopherbot gopherbot added this to the Untriaged milestone Aug 28, 2024
@ripplewang888
Copy link
Author

image
I think should add two menu bars when right click global variables.

@ripplewang888
Copy link
Author

ripplewang888 commented Aug 29, 2024

@gopherbot can you assign this issue to sb?

@hyangah
Copy link
Contributor

hyangah commented Aug 29, 2024

I guess the closest is data breakpoint. Delve DAP (the debug adapter behind the scene) is not supporting data breakpoints yet.

https://github.com/go-delve/delve/blob/a164b89df10aba455e0196222e51fa4b65e5746c/service/dap/server.go#L796-L799

Contribution to DAP (in the go-delve repo) is welcome.

@hyangah hyangah changed the title how to set a watchpoint in vscode dlv? As dlv support watch command. debug: support data breakpoints (watchpoint) Aug 29, 2024
@hyangah hyangah added FeatureRequest Debug Issues related to the debugging functionality of the extension. upstream-tools Issues that are caused by problems in the tools that the extension depends on. labels Aug 29, 2024
@ripplewang888
Copy link
Author

@hyangah , thanks.
Do you know when to support this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Debug Issues related to the debugging functionality of the extension. FeatureRequest upstream-tools Issues that are caused by problems in the tools that the extension depends on.
Projects
None yet
Development

No branches or pull requests

3 participants