Starting with UnityVS 1.2, you can now attach the Visual Studio debugger to Unity players, as long as they're built with the script debugging flag, and they're running on the same network as the UnityVS instance.

Build your player with the debugging flag

In the build settings of your Unity project, make sure that both the Development Build and Script debugging checkboxes are checked.


Configure the Web Player Channel

If you want to debug a Web Player, make sure to right click in the player, and configure the release channel to Development.

Note that if you're using Unity 4.2 or above, the "Release Channels" context menu item is now only be visible when the Alt/Option key is pressed when opening the context menu.


Attach the Unity debugger

Use the Attach Unity debugger entry in the Debug menu of Visual Studio to launch the Unity selection dialog, and click OK to start debugging.

<

Copyright © 2011-2014 SyntaxTree. All rights reserved.

Unity is a registered trademark of Unity Technologies.
Visual Studio is a registered trademark of Microsoft Corporation.