René's URL Explorer Experiment


Title: Pause on uncaught exceptions stops at wrong position with ES modules · Issue #38439 · nodejs/node · GitHub

Open Graph Title: Pause on uncaught exceptions stops at wrong position with ES modules · Issue #38439 · nodejs/node

X Title: Pause on uncaught exceptions stops at wrong position with ES modules · Issue #38439 · nodejs/node

Description: Version: 16.0.0 Platform: Win 10 x64 Subsystem: inspector What steps will reproduce the bug? Here's a repo with an easy reproduction: Open the repo in VS Code (or you can use another tool/any debugger) In the debug view (play button on t...

Open Graph Description: Version: 16.0.0 Platform: Win 10 x64 Subsystem: inspector What steps will reproduce the bug? Here's a repo with an easy reproduction: Open the repo in VS Code (or you can use another tool/any debug...

X Description: Version: 16.0.0 Platform: Win 10 x64 Subsystem: inspector What steps will reproduce the bug? Here's a repo with an easy reproduction: Open the repo in VS Code (or you can use another tool/any d...

Opengraph URL: https://github.com/nodejs/node/issues/38439

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pause on uncaught exceptions stops at wrong position with ES modules","articleBody":"\u003c!--\r\nThank you for reporting an issue.\r\n\r\nThis issue tracker is for bugs and issues found within Node.js core.\r\nIf you require more general support please file an issue on our help\r\nrepo. https://github.com/nodejs/help\r\n\r\n\r\nPlease fill in as much of the template below as you're able.\r\n\r\nVersion: output of `node -v`\r\nPlatform: output of `uname -a` (UNIX), or output of `\"$([Environment]::OSVersion | ForEach-Object VersionString) $(if ([Environment]::Is64BitOperatingSystem) { \"x64\" } else { \"x86\" })\"` in PowerShell console (Windows)\r\nSubsystem: if known, please specify affected core module name\r\n-->\r\n\r\n* **Version**: 16.0.0\r\n* **Platform**: Win 10 x64\r\n* **Subsystem**: inspector\r\n\r\n### What steps will reproduce the bug?\r\n\r\n[Here's a repo](https://github.com/connor4312/node-38439) with an easy reproduction:\r\n\r\n1. Open the repo in VS Code (or you can use another tool/any debugger)\r\n2. In the debug view (play button on the left hand side):\r\n    - Check the `[x] Uncaught Exceptions` box in the breakpoints view.\r\n    - Select \"No Bug\" and hit the play button. This runs `no-bug/index.js`.\r\n3. The debugger pauses at the location of the `throw`\r\n4. Now select \"Repro Bug\", and hit the play button. This runs `bug/index.js`: the same code in an ES module.\r\n5. The debugger pauses inside internal Node.js module code:\r\n\r\n![](https://memes.peet.io/img/21-04-ecbbe8a0-6b4b-4351-af85-ac411674bf0f.png)\r\n\r\nUnder the hood this is just calling `Debugger.setPauseOnExceptions({ state: 'uncaught' })`, so it should be reproducable with any tool. In both cases this leads to a `Debugger.pause`, with the latter in the wrong location.\r\n\r\nI'm guessing there's some inspector ✨magic that happens with commonjs that isn't happening for ES modules.\r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\n100%\r\n\r\n### What is the expected behavior?\r\n\r\nIn both cases, the debugger should pause on the `throw`\r\n\r\n### What do you see instead?\r\n\r\nIn ES modules, it pauses in module_job.js.\r\n\r\n### Additional information\r\n\r\nThis was originally reported in https://github.com/microsoft/vscode/issues/122246","author":{"url":"https://github.com/connor4312","@type":"Person","name":"connor4312"},"datePublished":"2021-04-27T15:54:15Z","url":"https://github.com/nodejs/node/issues/38439"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:38654ae5-b997-80a5-f539-beb518a32ef3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD85A:2A8F8B:100047C:14CCA8A:6B04ED86
html-safe-nonce4a2387964b7ab2cb02eb2ea9223db541dc9a3d851478940d28686cd5227fbab1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODVBOjJBOEY4QjoxMDAwNDdDOjE0Q0NBOEE6NkIwNEVEODYiLCJ2aXNpdG9yX2lkIjoiNDMzMjA4Mjg0MTc5OTQyMTMxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf99644c6c874d785f096a06be7a1af6174a23b6dd43702ffbe95196e3f6c4d95
hovercard-subject-tagissue:869001292
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/38439/issue_layout
twitter:imagehttps://opengraph.githubassets.com/408334f9be788489eda06759cc6b2782d26df19dc6667dd9ca60e24f78034242/nodejs/node/issues/38439
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/408334f9be788489eda06759cc6b2782d26df19dc6667dd9ca60e24f78034242/nodejs/node/issues/38439
og:image:altVersion: 16.0.0 Platform: Win 10 x64 Subsystem: inspector What steps will reproduce the bug? Here's a repo with an easy reproduction: Open the repo in VS Code (or you can use another tool/any debug...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameconnor4312
hostnamegithub.com
expected-hostnamegithub.com
Nonef3851aad500d8e8dce736722ddc6fa9596e17d9fce3c53581eba968664c0bc32
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee29c922455fd8137f27e1cfcdf6a1e8b920b1926
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/38439#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F38439
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F38439
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/38439
Reloadhttps://github.com/nodejs/node/issues/38439
Reloadhttps://github.com/nodejs/node/issues/38439
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues631 (631)https://github.com/nodejs/node/issues
Pull requests656 (656)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/insights
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/38439
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/38439
Pause on uncaught exceptions stops at wrong position with ES moduleshttps://github.com/nodejs/node/issues/38439#top
esmhttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22esm%22
inspectorhttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22inspector%22
https://github.com/connor4312
connor4312https://github.com/connor4312
on Apr 27, 2021https://github.com/nodejs/node/issues/38439#issue-869001292
Here's a repohttps://github.com/connor4312/node-38439
https://camo.githubusercontent.com/486ab1224ff91c7b782c9e6a089801f576331fa7f2f100f6198228eaa3530aae/68747470733a2f2f6d656d65732e706565742e696f2f696d672f32312d30342d65636262653861302d366234622d343335312d616638352d6163343131363734626630662e706e67
microsoft/vscode#122246https://github.com/microsoft/vscode/issues/122246
Ayase-252https://github.com/Ayase-252
esmhttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22esm%22
inspectorhttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22inspector%22
on Apr 27, 2021https://github.com/nodejs/node/issues/38439#event-4651822992
https://github.com/Trott
Trotthttps://github.com/Trott
on May 1, 2021https://github.com/nodejs/node/issues/38439#issuecomment-830643921
https://github.com/Trott
Trotthttps://github.com/Trott
on May 1, 2021https://github.com/nodejs/node/issues/38439#issuecomment-830644261
https://github.com/hybrist
hybristhttps://github.com/hybrist
on May 2, 2021https://github.com/nodejs/node/issues/38439#issuecomment-830714870
https://github.com/MrJithil
MrJithilhttps://github.com/MrJithil
on May 2, 2021https://github.com/nodejs/node/issues/38439#issuecomment-830782064
@connor4312https://github.com/connor4312
https://github.com/connor4312
connor4312https://github.com/connor4312
on May 2, 2021https://github.com/nodejs/node/issues/38439#issuecomment-830839968
@MrJithilhttps://github.com/MrJithil
https://github.com/MrJithil
MrJithilhttps://github.com/MrJithil
on May 3, 2021https://github.com/nodejs/node/issues/38439#issuecomment-831100449
@MrJithilhttps://github.com/MrJithil
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Jun 27, 2026https://github.com/nodejs/node/issues/38439#issuecomment-4820237061
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
stalehttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Jun 27, 2026https://github.com/nodejs/node/issues/38439#event-27285807269
https://github.com/connor4312
connor4312https://github.com/connor4312
on Jun 28, 2026https://github.com/nodejs/node/issues/38439#issuecomment-4823516208
github-actionshttps://github.com/apps/github-actions
stalehttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Jun 28, 2026https://github.com/nodejs/node/issues/38439#event-27291787136
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Sep 27, 2026https://github.com/nodejs/node/issues/38439#issuecomment-5851661798
GitHub Actionshttps://help.github.com/en/actions
github-actionshttps://github.com/apps/github-actions
stalehttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Sep 27, 2026https://github.com/nodejs/node/issues/38439#event-31914012131
https://github.com/connor4312
connor4312https://github.com/connor4312
on Sep 29, 2026https://github.com/nodejs/node/issues/38439#issuecomment-5893676678
github-actionshttps://github.com/apps/github-actions
stalehttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stale%22
on Sep 30, 2026https://github.com/nodejs/node/issues/38439#event-32127516573
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/38439
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/38439
esmhttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22esm%22
inspectorhttps://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22inspector%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.