Skip to content

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

Open
@kevarek

Description

@kevarek

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions