Visual Studio can't "Attach to Unity"

I can’t get Visual Studio to attach to Unity using the “Attach to Unity” button, when I do so it just brings up a “Select Unity Instance” window and there is nothing.

If I go to Debug > Attach Unity Debugger it’s the same thing, nothing shows up, there is an “Input IP” button but I have no idea what IP to put in there.

Of course, I can still do a manual “attach to process” and find the Unity instance, but it doesn’t quite work the same, and is a major pain to do over and over.

I’m working in Visual Studio Community 2015 Version 14.0.23107.0 D14REL

I’ve tried with Unity 5.2.1 and 5.2.2

Our of curiosity, if you Run as Administrator on Visual Studio, does it change anything?

Tried it, doesn’t work. Any other ideas?

Have you tried making sure you have the latest version of visual studio tools for Unity?

Click on the FREE VS Tools for Unity button.

Yes I have the latest version of visual studio tools for Unity. I’ve tried reinstalling Unity and Visual Studio Community 2015 and the tools. I still can’t attach to Unity. Please help!

I’m not sure what to tell you. I have no problems attaching with any version of Unity 5 and Visual Studio 2015 (including 5.2.2). But, I’m using the Enterprise version of VS2015, so maybe something is different with Community.

I have this problem after installation Xamarin. I’m unistall Xamarin and thus I solved the problem

1 Like

Hi,

The issue was a conflict between the Visual Studio Tools for Unity and the Xamarin tools that are in Visual Studio Update 3.

We just shipped a new version of VSTU that fixes the conflict.

1 Like