You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[lldb-dap] Support thread focused breakpoint mode for SourceBreakpoint
Summary:
This diff mainly did 2 things to support the breakpoint mode in `SourceBreakpoint`
- Return the `breakpointModes` in `Capabilities`
- "Normal": this is an no-op, it will not change anything about source breakpoints
- "threadFocused": this is the new mode we want to support for VSCode users; it will used the current "focused tid", which is usually the thread that users stopped on, or the specific thread that user selected to resume from.
- Currently, the breakpoint modes only apply to `source`
- Handle the mode in `setBreakpoints` request.
- Only when the `mode` field comes back as `threadFocused` that we will set the bp's thread id to `dap.focus_tid`
- Do nothing otherwise
Test Plan:
VSCode already supports such capabilities and UI showed up after lldb-dap return `breakpointModes` in its capabilities.
{F1968843974}
{F1968844047}
{F1968844097}
https://pxl.cl/62NFt
And selecting the breakpoint mode `Thread Focused` will put a filter on the tid to the current stopped thread
https://pxl.cl/62NFD
The setBreakpoints request will send the `mode`; The setBreakpoint response will return the `tid`
{F1968849686}
Return empty `breakpointModes` if Single stopped event is turned off
https://pxl.cl/658p3
NOTE: There's an issue with the UI updates, once the capabilities is registered with VSCode, it seems we cann>
Tried using the `CapabilitiesEvent`, wasn't able to update the UI either.
cc. @NBlake
Reviewers: nblake, #lldb_team
Reviewed By: nblake
Subscribers: nblake, pdepetro, #lldb_team
Differential Revision: https://phabricator.intern.facebook.com/D66549375
Differential Revision: https://phabricator.intern.facebook.com/D66835436
Tags: accept2ship
0 commit comments