Title: Debugging v8.5 - always pauses in async_hooks.js on promise rejection · Issue #15464 · nodejs/node · GitHub
Open Graph Title: Debugging v8.5 - always pauses in async_hooks.js on promise rejection · Issue #15464 · nodejs/node
X Title: Debugging v8.5 - always pauses in async_hooks.js on promise rejection · Issue #15464 · nodejs/node
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.j...
Open Graph 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 emitDes...
X 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...
Opengraph URL: https://github.com/nodejs/node/issues/15464
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Debugging v8.5 - always pauses in async_hooks.js on promise rejection","articleBody":"Have this code:\r\n\r\n```js\r\nconsole.log('before');\r\nPromise.reject(new Error('error'))\r\n```\r\n\r\nWhen 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.\r\n\r\nThe stack where it pauses is\r\n\r\n```\r\nemitDestroyScript (async_hooks.js:436)\r\n_tickCallback (next_tick.js:175)\r\nModule.runMain (module.js:667)\r\nstartup (bootstrap_node.js:201)\r\n(anonymous function) (bootstrap_node.js:626)\r\n```\r\n\r\nThe reason on the Debugger.paused message is \"other\".","author":{"url":"https://github.com/roblourens","@type":"Person","name":"roblourens"},"datePublished":"2017-09-19T00:22:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":53},"url":"https://github.com/15464/node/issues/15464"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:891b8419-c1fc-a883-ae25-bdae3049a572 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D8A6:1C418C:1BA9EEF:27EC573:6A4CFB5C |
| html-safe-nonce | a10e8785b3fe3dd7ed8fbe3b46531352a7ceec6aed1c56a62b9dd7e9ab34e246 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEE2OjFDNDE4QzoxQkE5RUVGOjI3RUM1NzM6NkE0Q0ZCNUMiLCJ2aXNpdG9yX2lkIjoiNzk5OTg4ODI1MDAzNzQwMjQ2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6a00ca4330589a8f46af4636a7a498ced7c97bf86437fa97e7fba344f8d60a46 |
| hovercard-subject-tag | issue:258659318 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/15464/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7976de10b3454d998d176eec6a24e6b24027e96c5205649cbb23a9f8cdf41108/nodejs/node/issues/15464 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7976de10b3454d998d176eec6a24e6b24027e96c5205649cbb23a9f8cdf41108/nodejs/node/issues/15464 |
| og:image:alt | 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 emitDes... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | roblourens |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8307e9ba117a26e92a64fb1daf085d795a6552ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width