

It really seems to me that the "play" process attaches to the VS somewhere in "another" instance or something. It does happen with and without any breakpoints set. empty ones with just the Debug.Log("whatever") in the Start() function. The above problem happens in ALL kinds of projects and scripts for me, incl. Keep your "watch out for endless loops" to yourself at this point as I've been around programming for over a decade now and I'm perfectly sure that I stopped producing those after the first couple of years. open up a project, no matter what template (same with 3D, URP, HDRP),.If the variable is an object, you can expand the object by clicking on the. The DataTip will appear showing you the value of that variable. When stopped in the debugger hover the mouse cursor over the variable you want to look at. I've had this issue since I started with Unity, the Editor would almost always hang up whenever I do the following: The most commonly used way to look at variables is the DataTip. Since this issue is still around in 2020 (duh!) let me share my experience. It previously would take minutes to attach.

I have been running this solution for nearly three months now and attach to debug still only takes about 10 seconds the first time (and is faster subsequent times) regardless of how many break points I have set, even ones from previous debug sessions. It is just not the problem/solution for every setup. I'm sorry it didn't work for you and I know the problem is very frustrating but given a small but still meaningful sample size and success (the commenter who originally posted this solution also had success), I would not discount the entire solution as merely being "luck" or coincidence.

My co-workers all run similar laptops and have similar setups, so it makes sense that one solution would work for all of us. Thus, I would not say that the solution is "pure luck" rather it appears that our setups are different and you are encountering a different problem than us. Click to expand.This solution solved the problem for me and five other coworkers in my company.
