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
{{ message }}
Repository navigation
Debugging: Support single-thread execution requests #166450
DAP execution requests (continue, next, stepIn etc.) support two modes:
The default mode, where execution requests resume all threads.
A single-thread mode, where execution requests only resume a single thread.
It seems VS Code always uses the default mode (even when using the inline buttons on each thread in the Call Stack window). For debug adapters that support single-thread execution requests, it would be great if there was some way to perform them from VS Code. Some ideas for how this could work:
A button in the debug toolbar that globally toggles between the modes. All continue/next/stepIn etc. actions taken by the user would use the currently selected mode.
Separate UI for single-thread execution control. For example, the debug toolbar could perform actions on all threads, whereas the inline buttons shown when hovering over a thread in the Call Stack window could perform actions only on that thread. To me at least, it's a bit confusing that pressing the inline 'Continue' button on a thread also resumes all other threads.
Reacted by David Rogers, Alemar, Correnson Loïc, [object Object] and Nerixyz
VS Code hasn't adopted the singleThread flag but the DA also needs to support this, signaled by setting supportsSingleThreadExecutionRequests. Which DA are you trying to use this for?
I am a developer on IAR System's C-SPY Debug extension and am in the process of implementing multicore debugging support for it. With that, our DA will have support for the singleThread flag, but we're missing a frontend to make use of that support.
As a point of interest, the debugger in our standalone IDE (Embedded Workbench) also has this feature, using a button that toggles between the single-thread and all-threads modes.
Hi, I have the same problem - an in-house DAP tool that is setting supportsSingleThreadExecutionRequests but VsCode doesn't really expose UI for it or craft requests considering it.
I looked into adding a context menu with a custom action to the debug/callstack/context contribution point, but the desired DAP info is not present in the invoked callback (would need at least threadID), and it's not clear if the response to manually invoking a DAP continue request from the callback would be intercepted by VsCode and "do the right thing", or if it would just shuttle the response back to the callsite while not otherwise reacting to it.
Put me down as a vote for Hampus Adolfsson (@HampusAdolfsson)'s suggestion to toggle UI between <current thread> (as per thread/frame pane) and <all threads>.
Hi! Just tried to support such feature for lldb-dap (native debugging has good support for single thread execution) and found out this is not properly supported in VSCode. Any timeline on supporting this yet? Thanks
Activity
roblourens commentedon Nov 17, 2022
VS Code hasn't adopted the
singleThreadflag but the DA also needs to support this, signaled by settingsupportsSingleThreadExecutionRequests. Which DA are you trying to use this for?HampusAdolfsson commentedon Nov 18, 2022
I am a developer on IAR System's C-SPY Debug extension and am in the process of implementing multicore debugging support for it. With that, our DA will have support for the
singleThreadflag, but we're missing a frontend to make use of that support.As a point of interest, the debugger in our standalone IDE (Embedded Workbench) also has this feature, using a button that toggles between the single-thread and all-threads modes.
softwareCobbler commentedon Jan 29, 2023
Hi, I have the same problem - an in-house DAP tool that is setting
supportsSingleThreadExecutionRequestsbut VsCode doesn't really expose UI for it or craft requests considering it.I looked into adding a context menu with a custom action to the
debug/callstack/contextcontribution point, but the desired DAP info is not present in the invoked callback (would need at least threadID), and it's not clear if the response to manually invoking a DAPcontinuerequest from the callback would be intercepted by VsCode and "do the right thing", or if it would just shuttle the response back to the callsite while not otherwise reacting to it.Put me down as a vote for Hampus Adolfsson (@HampusAdolfsson)'s suggestion to toggle UI between <current thread> (as per thread/frame pane) and <all threads>.
kusmour commentedon May 29, 2026
Hi! Just tried to support such feature for lldb-dap (native debugging has good support for single thread execution) and found out this is not properly supported in VSCode. Any timeline on supporting this yet? Thanks