-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Possibility to add data breakpoints #58304
Comments
We will start exploring this in November |
corresponding DAP proposal: microsoft/debug-adapter-protocol#20 |
What we plan to do:
|
The plan sounds great! Regarding the UX:
Data breakpoints with a condition, hit count and log:
|
@britalmeida thanks for the feedback.
|
I wanted to add a link to #55931, because it's been marked as closed, but essentially, it is talking about the same thing. |
@weinand : will 'Data Breakpoint' will be part of the February 2019 VS Code release ? If not, when is it planned for ? |
The VS Code UI for Data Breakpoints is planned for March or April. But don't hold your breath... |
What we plan to do in August: We support a new breakpoint type "data" which will be shown in the breakpoints view with a new icon (tbd). Data breakpoints optionally have a condition, a hit count, and support logPoints but currently VS Code has no UI to edit these attributes outside the source editor. In the initial implementation data breakpoints only exist while a debug session is active (which means that data breakpoints are not persisted across debug sessions). Only if a DA has a A data breakpoint can be created via a context menu action in the Variable view. The variable's reference and name is passed to the DAP request Data breakpoints are registered with the DA via the Hitting a data breakpoint stops the program and a reason "data breakpoint" is shown in the Stacktrace view and the data breakpoint's name is shown when in the hover. Ideally we could show this information in the source as well (like we do for exceptions). Here is what VS shows in this situation: Additional Info: |
@isidorn I've created a mock implementation of data breakpoints in a branch of vscode-mock-debug: https://github.com/microsoft/vscode-mock-debug/tree/aweinand/databreakpoints |
Thanks a lot. I'll pick this up and add UI. |
I pushed an initial version of data breakpoints via a7cc79a This still needs quite some testing. So on Monday I plan to verify:
@weinand can you please check the changes in the EH area where I introduced a new type |
If a debug adapter supports data breakpoints it is possible to add them via the context menu on a variable in the VARIABLES view. I have added code that data breakpoints get cleared when the session ends. @gregg-miskelly @pieandcakes @WardenGnaw you can try out data breakpoints in latest VS Code insiders and let us know what you think. Currently we just decorate the CALL STACK view with the reason which can be
The first option we could easily do and it is pretty generic, as we would just show the description of the Data Breakpoint or some other field that we agree upon. Currently it is not possible to add conditions and hit counts to data breakpoints. We can look into adding this in the future. Let me know what you think and thanks |
Closing since we have tackled this initialy in this milestone. |
Please add a feature to "Add data breakpoint" (at least?) for the C and C++ language.
Ideally, this would be available both by:
The text was updated successfully, but these errors were encountered: