-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Closed
Labels
async_hooksIssues and PRs related to the async hooks subsystem.Issues and PRs related to the async hooks subsystem.confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.inspectorIssues and PRs related to the V8 inspector protocolIssues and PRs related to the V8 inspector protocolpromisesIssues and PRs related to ECMAScript promises.Issues and PRs related to ECMAScript promises.
Description
Have this code:
console.log('before');
Promise.reject(new Error('error'))
When I debug it in Chrome Devtools or VS Code, even when it's set to not break on exceptions, it pauses on function emitDestroyScript(asyncId) {...
in async_hook.js after the promise is rejected.
The stack where it pauses is
emitDestroyScript (async_hooks.js:436)
_tickCallback (next_tick.js:175)
Module.runMain (module.js:667)
startup (bootstrap_node.js:201)
(anonymous function) (bootstrap_node.js:626)
The reason on the Debugger.paused message is "other".
TheAkio, rarms-mylo, samrg472, AntonTrollback, gillesdemey and 75 more
Metadata
Metadata
Assignees
Labels
async_hooksIssues and PRs related to the async hooks subsystem.Issues and PRs related to the async hooks subsystem.confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.inspectorIssues and PRs related to the V8 inspector protocolIssues and PRs related to the V8 inspector protocolpromisesIssues and PRs related to ECMAScript promises.Issues and PRs related to ECMAScript promises.