Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2019.4
2020.2
2021.1
2021.1.0b4
2021.2
Issue ID
1310990
Regression
No
Editor freezes when IDE debugger hits a breapoint in a method with MenuItem attribute
WARNING:
Make sure the Task Manager is closed before reproducing this issue! You will not be able to open any applications that are already open on Windows 10 taskbar, however, you can still use the Ctrl+Shift+Esc shortcut to open the Task Manager and kill the IDE process.
Reproduction steps:
1. Open the user's attached "ValidatorFunctionFreeze.zip" project
2. Open the MenuItem.cs script
3. Set a breakpoint at line 17 (in ExecuteValidation method)
4. Attach a debugger and return to Unity Editor
5. Click on the "Example" in the menu bar
-- Observe the Editor freeze
Reproducible with: 2018.4.32f1, 2019.4.20f1, 2020.2.5f1, 2021.1.0b7, 2021.2.0a4
Tested with:
- Visual Studio Code
- Visual Studio 2019
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shadows are not visible in Player when using DX12 with Forward+ or Deferred+ rendering in URP
- Rendering Debugger Playmode debug UI scrolling is jittery when using click and drag to scroll
- Frame Debugger Target Selection Search Results window becomes too tiny to even see the default “Editor” selection when there are no search results
- Async method in Play Mode being aborted when calling `new System.Windows.Forms.Form`
- Animator window Eye button on click visual does not cover the whole area of the button when clicked
Resolution Note:
This is a limitation of the Mono debugger on Windows.
Current workaround is to run Unity and Visual Studio side by side when debugging such code (instead of running Unity in full screen)