diff --git a/src/chrome/chromeDebugAdapter.ts b/src/chrome/chromeDebugAdapter.ts index 9fef14f41..b1c372e86 100644 --- a/src/chrome/chromeDebugAdapter.ts +++ b/src/chrome/chromeDebugAdapter.ts @@ -352,6 +352,9 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter { if (notification.reason === 'exception') { reason = 'exception'; this._exception = notification.data; + } else if (notification.reason === 'promiseRejection') { + reason = 'promise rejection'; + this._exception = notification.data; } else if (notification.hitBreakpoints && notification.hitBreakpoints.length) { reason = 'breakpoint'; @@ -372,8 +375,6 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter { // If this was a step, check whether to smart step reason = expectingStopReason; smartStepP = this.shouldSmartStep(this._currentStack[0]); - } else if (notification.reason === 'promiseRejection') { - reason = 'promise rejection'; } else { reason = 'debugger'; }