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

Commit

Permalink
Fix #226 - await the debugger call so it throws if not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Aug 14, 2017
1 parent a78782b commit c0fae01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chrome/chromeDebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export abstract class ChromeDebugAdapter implements IDebugAdapter {

const maxDepth = this._launchAttachArgs.showAsyncStacks ? ChromeDebugAdapter.ASYNC_CALL_STACK_DEPTH : 0;
try {
return this.chrome.Debugger.setAsyncCallStackDepth({ maxDepth });
return await this.chrome.Debugger.setAsyncCallStackDepth({ maxDepth });
} catch (e) {
// Not supported by older runtimes, ignore it.
return;
Expand Down

2 comments on commit c0fae01

@itoys
Copy link

@itoys itoys commented on c0fae01 Aug 14, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works. Thanks!

@roblourens
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for checking! 🎉

Please sign in to comment.