Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
restartFrame fails in Electron 6, ignore the failure and continue
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Dec 5, 2019
1 parent 1be0105 commit fa8b0c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/chrome/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,10 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {
return utils.errP(errors.noRestartFrame);
}

await this.chrome.Debugger.restartFrame({ callFrameId: callFrame.callFrameId });
try {
await this.chrome.Debugger.restartFrame({ callFrameId: callFrame.callFrameId });
} catch (_e) { } // Fails in Electron 6, ignore: https://github.com/microsoft/vscode/issues/86411

this._expectingStopReason = 'frame_entry';
return this.chrome.Debugger.stepInto({ });
}
Expand Down

0 comments on commit fa8b0c4

Please sign in to comment.