-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Labels
Description
Describe the Issue
When debugging a Unity project with Visual Studio code using the official C#, C# Dev Kit, and Unity plugins by microsoft, the checkbox to break on User-Unhandled Exceptions or All Exceptions do not work.
This feature works well with Unity in Visual Studio and in Rider, but not in Visual Studio Code.
Steps To Reproduce
In a Unity project with C#, C# Dev Kit and Unity plugins
- Debug a Unity project by attaching the debugger to the Unity editor.
- Open the Run and Debug panel, in the Breakpoints section, enable the User-Unhandled Exceptions checkbox
- Set your code to throw an exception, any exception
- Run the project in Unity, reach the code that throws an exception.
Expected Behavior
Expected: The debugger will break when the exception is thrown
Actual: The exception is logged in the Unity log, but the execution continues and the debugger does not break
Environment Information
- OS: Windows 10
- VS Code: 1.97.2
- Unity: 2021.3.29f
Reactions are currently unavailable