Check "Caught Exceptions" and "Uncaught Exceptions" in the debugger panel.
Hit F5.
No breakpoint is hit.
Log File
Debug console.
C:\Program Files\nodejs\node.exe .\index.js
Uncaught Error Error: ENOENT: no such file or directory, open 'C:\sources\personal\top-level-await-debug\does\not\exist'
--- await ---
at runEntryPointWithESMLoader (internal/modules/run_main:139:19)
at executeUserEntryPoint (internal/modules/run_main:173:5)
at <anonymous> (internal/main/run_main_module:30:49)
run_main:139
Process exited with code 1
Describe the bug The debugger does not stop on uncaught exceptions from a Node.js library if the call is nested within a top-level await.
To Reproduce
package.json
index.js
launch.json
Log File Debug console.
vscode-debugadapter-6410230d.json.gz
VS Code Version: 1.92.1