Hi,
since Unity 2021, Debugging seems to be broken.
If I hit Debug in VS 2015, I get a box asking for a running Unity Instance. There is nothing to choose from in the box.
Seems Unity cannot attach to VS anymore. Works fine in Unity 2018.4. Didn’t check other versions.
This may help you with intellisense and possibly other Visual Studio integration problems:
Sometimes the fix is as simple as doing Assets → Open C# Project from Unity. Other times it requires more.
Likely, if you have appeared here to this page you are having the problem I had for the past hour or so. Intellisense is not working in Visual Studio. Well lucky for you, I figured out the solution to fix this issue after searching the entire web. So you don’t have to search the web anymore, I will tell you how I fixed the issue.
Step 1:
Close Visual Studio
Step 2:
In Unity, go to Edit < Preferences < External Tools (left part of the Window)
Step 3:
In External Tools go to the part that sa…
Also, try update the VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button
Also, this: No suggestions in Vscode
Thanks a lot. I’ll try.
Is this some reoccurring bug? I’m working with Unity Versions from 5.5 to 2021 for 5+ years now and don’t remember encountering this bug yet. So I thought it might be new in 2021.
Certainly seems to be.
For instance in 2017 it was impossible to attach the debugger if you used the GameSparks plugin.
At other times with various Windows updates, debugging has failed.
Even today our team even has an open ticket with Unity about an Android issue that they have been able to repro, so the fix is in the pipe.
yeah… my newest experience is:
closing VS
closing Unity
restart Unity
starting VS from MainMenu/Assets/Open C# project
This seems to be kind of reliable. But only if you previously tried to debug with no success.