View on GitHub

blog

Here are the labs from my blog.

How to Unity3D – Use VisualStudio Script Editor and Debug Project

alt text

In this tutorial, you’ll see a project configured with VisualStudio. And how to run and debug it.

alt text

Steps

1. Open the ‘Example’ project

In Unity3D:

alt text

alt text

alt text

alt text

alt text

alt text

alt text

alt text

2. Choose a Script Editor

In Unity3d:

alt text

alt text

alt text

alt text

3. Add Breakpoint in source code

In VisualStudio:

alt text

4. Attach Script Editor to Unity3D

In VisualStudio:

alt text

5. Debug

In VisualStudio:

In Unity3d:

In VisualStudio:

alt text

alt text

alt text

alt text

alt text

Conclusion

Pros: More productive than MonoDevelop (you don’t have to switch beetwen Editor and Unity3D to run a debug). Dark Them is nice too!

alt text

Cons: More heavy on CPU/RAM than MonoDevelop. And it’s a Microsoft product

Here is the same project opened on VisualStudio, MonoDevelop and a text Editor.

alt text

Source

https://github.com/DamienFremont/blog/tree/master/20170603-unity3d-use-visualstudio-script-editor-and-debug/ https://github.com/DamienFremont/blog/tree/master/20170603-unity3d-use-visualstudio-script-editor-and-debug/

References

https://unity3d.com/fr/learn/tutorials/topics/scripting/debugging-unity-games-visual-studio https://unity3d.com/fr/learn/tutorials/topics/scripting/debugging-unity-games-visual-studio

Origin

https://damienfremont.com/2017/06/03/how-to-unity3d-use-visualstudio-script-editor-and-debug-project/