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

Add support for data breakpoints

Open theHamsta opened this issue 4 years ago • 2 comments
trafficstars

First draft for data breakpoints. Program execution will stop when the specified variable/expression is modified. Since in the video it its not 100% obvious why the program has stopped, I added some message after capturing the screencast.

https://user-images.githubusercontent.com/7189118/113154094-f5d27880-9237-11eb-90b1-cebf23dd701e.mp4

They can persist over sessions. Java debug adapter only supports data breakpoints for value contained in some kind of container (a class or object) not free standing stack variables like a loop counter i nor more general expressions.

theHamsta avatar Mar 31 '21 13:03 theHamsta

Sorry for not getting back to this earlier, I wanted to wrap up some of the other stuff I was working on first.

Quite a bit has changed in the module structures so it looks like this PR would have to be adjusted. Are you still up for that?

mfussenegger avatar May 07 '21 14:05 mfussenegger

I guess this could be split into multiple PRs. If you want you can take the methods for Session and the set data point to the new variables widget. I saw there is also a presentation hint that suggests whether a variable would support a data breakpoint.

I may have time for this next week.

theHamsta avatar May 07 '21 19:05 theHamsta