Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
17
Found in
Issue ID
1110352
Regression
No
Unity freezes when pressing Debug
Repro steps:
This problem only seems to appear in Unity Editor on Linux. Tested with Ubuntu 18.04 using the VSCode Debugger Extension
1. Download attached files.zip
2. Create an empty project in unity, and attach the GameGO.cs script to an empty gameobject in the scene.
3. Verify that your debugger works by putting a breakpoint in Game.cs line 11 and entering playmode
4. Set a breakpoint in Settings.cs line 12, then attach debugger
5. Enter playmode in unity.
Expected behaviour: Enters playmode with no issues
Actual behaviour: Unity freezes when entering playmode
-
Haraven
Aug 20, 2022 06:20
Still happens even today.
I'm using VSCode on Windows, and the issue happens often when debugging.
-
mohsen_mvd
Nov 19, 2020 22:33
I found out that the anti virus was my problem. when I closed my anti virus app then everything went back to normal
-
Laurent_Giroud_Nvizzio
Dec 05, 2019 16:56
Several *important* points there:
- This is *not* a rare issue, our team gets it very frequently, they just get used to it and do not report it.
- This also happens on Windows.
- This is extensively mentioned by the community (just web search it: https://www.google.com/search?q=unity+freeze+debugger).
- This is *heavily* associated to the number of breakpoints and the number of subsequent debugging sessions:
- Reducing the number of breakpoints *usually* reduces the amount of time the Unity Editor gets frozen. But after some time, that ceases working (see next point).
- Clearing the number of breakpoints *usually* solves the issue when reducing them does not work anymore.
- Sometimes that is not enough, removing and re-installing the VS Unity extension is necessary.For the love of everything that is cute and fun please solve this, this is maddening.
And do not ask us to repro it, it usually takes hours of debugging without issues to reach that issue. -
habtic_roger
Dec 18, 2018 08:04
I have the same on Windows using Visual Studio 2017. After 2 to 10 minutes it goes into play mode afterall. Attaching debugger while playing already results in a freeze also. This does not happen every time, but very often.
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
- Profiler - Taking you to the wrong section when using 'show'
- Draw Renderers custom pass doesn't work with SSGI
- WebCamTexture does not set the requested resolution when used in WebGL
- Editor default Stylesheet/Matching Selector buttons in Debugger don't do anything
- Graphics.DrawMeshNow stops rendering Render Texture after a few frames when viewed in the Player
Resolution Note:
This issue rarely occurs and will be fixed by a future mono upgrade in Unity.