Repository navigation
Closed
Labels
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesinsiders-releasedPatch has been released in VS Code Insidersverification-steps-neededSteps to verify are needed for verificationverifiedVerification succeeded
Milestone
Description
Whenever I debug my extension code from source and then start a debug session, the debugger (in the VS Code that's hosting my source code) breaks on a timeout:
I only have the debug settings to break on "Uncaught exceptions", but it still breaks here. I believe the source is this code here:
vscode/src/vs/workbench/api/common/extHostDebugService.ts
Lines 800 to 817 in f74e473
| return Promise.race([ | |
| Promise.all(promises).then(result => { | |
| const trackers = <vscode.DebugAdapterTracker[]>result.filter(t => !!t); // filter null | |
| if (trackers.length > 0) { | |
| return new MultiTracker(trackers); | |
| } | |
| return undefined; | |
| }), | |
| new Promise<never>((resolve, reject) => { | |
| const timeout = setTimeout(() => { | |
| clearTimeout(timeout); | |
| reject(new Error('timeout')); | |
| }, 1000); | |
| }) | |
| ]).catch(err => { | |
| // ignore errors | |
| return undefined; | |
| }); |
I'm not sure why the code is timing out (or exactly what it's doing), but it's quite annoying to have to click resume in the debugger back in the "other" VS Code when trying to test things in my extension host.
(I can't repro this in MockDebug, but I don't know why - I'm not familiar with what this code is trying to do).
Reacted by Matthew Goldberg and foxsofter
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesinsiders-releasedPatch has been released in VS Code Insidersverification-steps-neededSteps to verify are needed for verificationverifiedVerification succeeded

Activity
fix: unhandled rejection with debugadaptertrackers
fix: unhandled rejection with debugadaptertrackers (#166959)