diff --git a/src/chrome/chromeDebugAdapter.ts b/src/chrome/chromeDebugAdapter.ts index c18ee2f41..7f7d2379c 100644 --- a/src/chrome/chromeDebugAdapter.ts +++ b/src/chrome/chromeDebugAdapter.ts @@ -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 { @@ -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 { @@ -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 { @@ -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 { - return (this.chrome).TimeTravel.stepBack(); + return (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 { - return (this.chrome).TimeTravel.reverse(); + return (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 {