Debugger pauses on promise rejection even though it is handled/caught (TypeScript) #50310
Labels
debug
Debug viewlet, configurations, breakpoints, adapter issues
*duplicate
Issue identified as a duplicate of another issue(s)
Issue Type: Bug
When I'm debugging code that wraps a synchronous function in an async function, if the synchronous function throws and an async caller catches, the debugger treats error/rejection as unhandled.
Previously, I had seen this issue when an error was thrown synchronously within an async function before an
await
(as described in #5213 (comment)). I was able to fix the problem by making the function in question synchronous (its async behavior had been refactored out already). But the problem has reappeared after I restarted VSCode yesterday (so I have to figure it's related to an update that may have been installed on restart?).Repro code (compiler target is es2016):
"Uncaught Exceptions" is checked, "All Exceptions" is not.
I'm not sure this is related to to #1746 because:
VS Code version: Code 1.23.1 (d0182c3, 2018-05-10T16:03:31.083Z)
OS version: Darwin x64 15.6.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
vpx_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (14)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: