Unity3d - Attach to Unity not working
I need to debug my scripts, but if I click "Attach to Unity" or "Attach to Unity and Play" then the button is just grayed out and after a few seconds it is clickable again, but nothing happens.
I already restarted the computer but It does not work.
I even updated visual studio, did not worked.
I deleted the folder "obj" in my project, did not worked.
Answer by MagicStyle · Nov 06, 2017 at 09:43 AM
Today after I started my computer, it works again. Maybe we have to shutdown the computer for a while, so that the RAM is getting cleared completly, maybe there was still vs junk in the RAM after restart which was causing the problem?
EDIT: Now the problem appeared again, after I set a breakpoint in a set method and then pressed on "Attach to Unity and Play"... HINT: I bet this is an important hint for the developers: it worked perfectly fine but then I had to force quit unity via task manager because I created an infinite loop and unity was freezed. Since then I am unable to attach to unity
Answer by i_nazarov · Apr 12, 2021 at 08:24 AM
Had the same symptoms after windows crash and reboot. I tried to close VS and editor, then started editor and opened script via editor and it helped.
Your answer
Follow this Question
Related Questions
Tools for Unity Visual Studio 2019 1 Answer
Tried everything but Intellisense doesn't work VS 2017-2019 0 Answers
How to Disconnect a client from the server properly using unity Netcode for GameObjects ? 0 Answers
Unity3.5.3 user prefrefence has no option for VS 0 Answers
Steps for/How to setup a base for "Game from ground-up without using Editor"? 0 Answers