Hello all,
I have been having the same problem for weeks, no matter what I cannot hit breakpoints in either Visual Studio and I just recently got the Jetbrains Rider demo to see if it would work there, unfortunately, it still doesn’t. I have tried all the things recommended on the forums, as well as on Microsofts Unity troubleshooting page and it still just shows them as unreachable. I know the code is executing as it has debug messages in it and they show up in the console just fine. Any suggestions?
Thanks,
Are you selecting “Attach to Unity” in Visual Studio, then pressing Run there?
Yes, I have tried every way under the sun. Attaching first, hitting play in game, play in VS, hitting “Attach then play”, playing first then attaching, stopping the game and hitting play again. You name it. I have deleted all files in library (its a large project, so it took some 2-3 hours, would hate to have to do it again if I don’t have to), deleted assemblies, deleted all VS project files and what not, the usr file (I think it was?) as per and forum posts and Microsofts site, but it is still a no go.
What version of Unity and Visual Studio? Works for me in Unity 2018.1 and VS 2017
2017.4.2f2. It worked for me in a different 2018.1.0f2 project I tried (the server side of my game), but it just doesn’t work on the client side. VS is 2017 V15.6.6.
So you double click on a .cs file within Unity, which loads the VS solution, correct?