-
Notifications
You must be signed in to change notification settings - Fork 106
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
Missed set StoppedEvent#hitBreakpointIds of StoppedEvent (DAP) #182
Comments
In case of DAP (see https://microsoft.github.io/debug-adapter-protocol/specification) this is optional field, plus, we don't have stop event multiple breakpoint IDs related code implemented for now. This feature still in our "TODO" list, but I have no idea when we will implement it. |
Yeah, optional - but its better for IDE it helps find correct paused breakpoint. I tested it with my patch consulo@6e4b9cb Works as expected, but not sure about implementation - need my tests |
But you code have wrong logic. In case, for example, code line will have 2 breakpoints with conditions and both conditions will be "true" (or ... different types of breakpoints map to the same location, multiple source breakpoints get collapsed to the same instruction by the compiler/runtime, multiple function breakpoints with different function names map to the same location, ...), wrong (not full) data will be provided in this filed. This why we don't provide it at all. In case this field not provided, IDE will care about all it need with source path and line number or other data (as it usually do). |
In this case MI protocol have same issue - its ignore multiple breakpoints |
Why MI should care about multiple breakpoints? MI stop event have only one breakpoint ID (first breakpoint that triggered thread for stop). |
Both of protocol implementation, implement Also |
Correct, no way for "simple fix" for this case with current code. This is why previously I wrote, that we don't have implemented related code for now. Code that find all related active breakpoints for line and interface changes for multiple breakpoints support in stop event should be added first. |
Hello. There no information about active breakpoint on StoppedEvent (DAP)
netcoredbg/src/protocols/vscodeprotocol.cpp
Line 162 in 83214c3
But in other protocols - breakpoint info exists (
netcoredbg/src/protocols/miprotocol.cpp
Line 411 in 83214c3
The text was updated successfully, but these errors were encountered: