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
Expected output (and is working correctly on 2020.2.0):
Error trapped + Error
Actual output on 2020.3.0:
No error shown
Extension version: 2020.3.0
Tested on PS7 and 5.1
VS Code version: Code 1.42.1 (c47d83b293181d9be64f27ff093689e8e7aed054, 2020-02-11T14:45:59.656Z)
OS version: Windows_NT x64 10.0.17763
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (2 x 3392)
rjmholt
changed the title
[2020.3.0 new bug] "trap { break }" stopped showing errors when using F5.
Nested errors in debugging not shown in console
Mar 11, 2020
Started looking into this, and there's definitely a race condition at work here; in some debugging sessions, choosing the right breakpoints actually gets the errors to print.
We correctly catch the RuntimeException and process it here.
That fires off an Out-Default execution without awaiting it.
When errors are written as expected, they go through this method in our host implementation, but this isn't reliably called...
Issue Type: Bug
Example from https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_trap?view=powershell-7#using-the-break-and-continue-keywords
Expected output (and is working correctly on 2020.2.0):

Error trapped + Error
Actual output on 2020.3.0:

No error shown
Extension version: 2020.3.0
Tested on PS7 and 5.1
VS Code version: Code 1.42.1 (c47d83b293181d9be64f27ff093689e8e7aed054, 2020-02-11T14:45:59.656Z)
OS version: Windows_NT x64 10.0.17763
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: disabled_off
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: unavailable_off
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: