Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging in Unity (C#) + Visual Studio Code Work on OS X?

Tags:

I really like the idea of working with Visual Studio, C# and Unity on OS X.

Has anyone made debugging with C# in Unity work with Visual Studio Code on OS X?

like image 937
Vexir Avatar asked Apr 30 '15 02:04

Vexir


People also ask

How do you Debug in C#?

To start debugging, select F5, or choose the Debug Target button in the Standard toolbar, or choose the Start Debugging button in the Debug toolbar, or choose Debug > Start Debugging from the menu bar. The app starts and the debugger runs to the line of code where you set the breakpoint.


1 Answers

Yes it works absolutely fine. Unity is C#, JavaScript or Boo. So, you don't need .NET for it. Unity uses Mono runtime. So, an existing VS project can be opened in Unity for Mac OS X.

EDIT

Here is a link that helps you to attach a debugger to the VS endpoint. http://www.yunspace.com/2015/01/19/integrating-visualstudio-with-unity3d-on-mac-using-vstools/

You can try VS Tools for Unity too. http://unityvs.com

UPDATE

There is this awesome Unity Plugin by dotBunny that solves the problem and integrates Code with Unity tools.

like image 75
Abhishek Dey Avatar answered Sep 17 '22 21:09

Abhishek Dey