You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Break on uncaught exceptions" breaks in module_job instead of my code #122246
debugDebug viewlet, configurations, breakpoints, adapter issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)upstream-issue-linkedThis is an upstream issue that has been reported upstream
Hello! I'm writing a node.js program. When I tick the "Breakpoints: Uncaught exceptions" box and run my program, VSCode opens a file named "module_job", which I didn't write and am not familiar with, and puts a breakpoint there. I would much prefer that VSCode put a breakpoint at the place in my code that caused the error. Can you help?
VS Code version: Code 1.55.2 (3c4e3df, 2021-04-13T09:36:32.643Z)
OS version: Darwin x64 20.3.0
My program has very few dependencies - just svg.js, svgdom, and xml-js (plus light-server, but I'm not using that right now). I'm running it with node .. Here's my package.json:
Here's something weird. If I try to debug by clicking the "Launch program" button in the Debugger pane, MacOS's "Save as" dialog comes up, asking where I want to save a copy of module_job to my filesystem. I don't know why it thinks I would want to do that.
Here's a copy of my launch.json, in case that helps.
debugDebug viewlet, configurations, breakpoints, adapter issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)upstream-issue-linkedThis is an upstream issue that has been reported upstream
Activity
toasty-sunbeam commentedon Apr 26, 2021
Here's the Call Stack pane:
My program has very few dependencies - just svg.js, svgdom, and xml-js (plus light-server, but I'm not using that right now). I'm running it with
node .. Here's my package.json:{ "dependencies": { "@svgdotjs/svg.js": "^3.0.16", "light-server": "^2.9.1", "svgdom": "^0.1.8", "xml-js": "^1.6.11" }, "scripts": { "generate": "node .", "dev": "light-server -s . -p 8080 -w '*.js, *.html # npm run generate'" }, "type": "module" }Here's the error:
toasty-sunbeam commentedon Apr 26, 2021
Here's something weird. If I try to debug by clicking the "Launch program" button in the Debugger pane, MacOS's "Save as" dialog comes up, asking where I want to save a copy of module_job to my filesystem. I don't know why it thinks I would want to do that.
Here's a copy of my launch.json, in case that helps.
{ "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Launch Program", "skipFiles": [ "<node_internals>/**" ], "program": "./index.js" } ] }connor4312 commentedon Apr 27, 2021
Thanks for the issue, this looks like a bug in Node.js. Please follow nodejs/node#38439 for updates.
toasty-sunbeam commentedon Apr 27, 2021
I'll watch that issue for updates. Thank you so much! 🙇