-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Open
Labels
debugDebug viewlet, configurations, breakpoints, adapter issuesDebug viewlet, configurations, breakpoints, adapter issuesunder-discussionIssue is under discussion for relevance, priority, approachIssue is under discussion for relevance, priority, approach
Milestone
Description
When sending a ContinuedEvent
with allThreadsContinued=true
, the selected debug session resets to the first one. This does not happen without allThreadsContinued=true
.
To repro:
- Clone MockDebug
- Add
response.body.supportsRestartRequest = true;
ininitializeRequest
- Implement a
restartRequest
that sends aContinuedEvent
withallThreadsContinued=true
:protected async restartRequest(response: DebugProtocol.RestartResponse, args: DebugProtocol.RestartArguments) { this.sendResponse(response); this.sendEvent(new ContinuedEvent(0, true)); }
- Run the project
- Create a second launch config:
"configurations": [ { "type": "mock", "request": "launch", "name": "Debug readme.md 1", "program": "${workspaceFolder}/readme.md", "stopOnEntry": true, "trace": false }, { "type": "mock", "request": "launch", "name": "Debug readme.md 2", "program": "${workspaceFolder}/readme.md", "stopOnEntry": true, "trace": false } ]
- Start both launch configurations (this can be done one at a time)
- Select the second debug session in the debug toolbar
- Click the Restart button
- Note that the dropdown has reverted to the first session
Metadata
Metadata
Assignees
Labels
debugDebug viewlet, configurations, breakpoints, adapter issuesDebug viewlet, configurations, breakpoints, adapter issuesunder-discussionIssue is under discussion for relevance, priority, approachIssue is under discussion for relevance, priority, approach