nanoframework / Home

:house: The landing page for .NET nanoFramework repositories.
https://www.nanoframework.net
MIT License
863 stars 78 forks source link

Try-catch block not catching on exception if "process stack trace" is set to true #1557

Open kevarek opened 1 week ago

kevarek commented 1 week ago

Tool

Visual Studio extension

Description

When process stack trace is set to true, try-catch block never executes its catch part. Setting it to false, exceptions are caught as expected. Described on discord https://discord.com/channels/478725473862549535/1307433046315896967/1309224952960127037

How to reproduce

1 Start hello world project 2 Set process stack trace to true 3) throw exception in try catch block as shown on discord 4) observe how catch is never executed and thread just stops

Expected behaviour

Catch block should be executed regardless process stack trace setting.

Screenshots

No response

Aditional context

No response

kevarek commented 1 week ago

VS2022 17.12.1; nF extension 2022.12.0.1; targets ESP32_REV0 and ESP32_REV3; ESP32_REV3-1.12.1.17.zip.