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

Commit

Permalink
Show exception scope for promise rejection -
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Mar 3, 2017
1 parent e26e4a0 commit 2bd41fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/chrome/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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';
}
Expand Down

0 comments on commit 2bd41fb

Please sign in to comment.