Skip to content

Node debugger doesn't break on unhandled promise rejection #130265

@ferdaber

Description

@ferdaber

Issue Type: Bug

When attempting to launch a file using pwa-node that runs a script like this:

async function crash() {
  new Promise(resolve => setTimeout(resolve, 1000));
  throw new Error('crash!');
}

crash();

With the "Uncaught Exceptions" box checked under Breakpoints, the program exits without breaking where I throw the error. The node version I am using is v14.17.4, and was able to reproduce it with v14.16.0 (the one that VSCode uses). I have tried it with all settings and extensions disabled, and even by reinstalling VSCode, and it still doesn't work.

VS Code version: Code 1.59.0 (379476f, 2021-08-04T23:13:12.822Z)
OS version: Windows_NT x64 10.0.19041
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz (8 x 1992)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.78GB (4.44GB free)
Process Argv --crash-reporter-id d54c4cbe-b545-41d3-b383-05429e18f989
Screen Reader no
VM 0%
Extensions: none

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesinfo-neededIssue requires more information from posterverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions