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

Commit

Permalink
Fix microsoft/vscode#27696 - errors when stepping too quickly
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Aug 13, 2017
1 parent f3784e4 commit ca08838
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/chrome/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,8 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {

this._expectingResumedEvent = true;
return this._currentStep = this.chrome.Debugger.resume()
.then(() => { });
.then(() => { /* make void */ },
e => { /* ignore failures - client can send the request when the target is no longer paused */ });
}

public next(): Promise<void> {
Expand All @@ -1218,7 +1219,8 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {
this._expectingStopReason = 'step';
this._expectingResumedEvent = true;
return this._currentStep = this.chrome.Debugger.stepOver()
.then(() => { });
.then(() => { /* make void */ },
e => { /* ignore failures - client can send the request when the target is no longer paused */ });
}

public stepIn(): Promise<void> {
Expand All @@ -1230,7 +1232,8 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {
this._expectingStopReason = 'step';
this._expectingResumedEvent = true;
return this._currentStep = this.chrome.Debugger.stepInto()
.then(() => { });
.then(() => { /* make void */ },
e => { /* ignore failures - client can send the request when the target is no longer paused */ });
}

public stepOut(): Promise<void> {
Expand All @@ -1242,15 +1245,20 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {
this._expectingStopReason = 'step';
this._expectingResumedEvent = true;
return this._currentStep = this.chrome.Debugger.stepOut()
.then(() => { });
.then(() => { /* make void */ },
e => { /* ignore failures - client can send the request when the target is no longer paused */ });
}

public stepBack(): Promise<void> {
return (<TimeTravelRuntime>this.chrome).TimeTravel.stepBack();
return (<TimeTravelRuntime>this.chrome).TimeTravel.stepBack()
.then(() => { /* make void */ },
e => { /* ignore failures - client can send the request when the target is no longer paused */ });
}

protected reverseContinue(): Promise<void> {
return (<TimeTravelRuntime>this.chrome).TimeTravel.reverse();
return (<TimeTravelRuntime>this.chrome).TimeTravel.reverse()
.then(() => { /* make void */ },
e => { /* ignore failures - client can send the request when the target is no longer paused */ });
}

public pause(): Promise<void> {
Expand Down

0 comments on commit ca08838

Please sign in to comment.