View on GitHub

blog

Here are the labs from my blog.

How to Unity3D – Use MonoDevelop Script Editor and Debug Project

alt text

In this tutorial, you’ll see a project configured with MonoDevelop. 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 MonoDevelop:

alt text

4. Attach Script Editor to Unity3D

In MonoDevelop:

alt text

alt text

5. Debug

In Unity3d:

In MonoDevelop:

In Unity3d:

alt text

alt text

alt text

alt text

Conclusion

Pros: MonoDevelop is more productive than editing script in simple text editor or in Unity3d (compilation, warnings, autocomplete, etc). It’s light on CPU/RAM consumption.

Cons: Need to switch between Editor and Unity to run each debug. It’s also a little unstable (copy/paste from webbrowser sometime copy empty chars, compilation shutdown, etc).

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-monodevelop-script-editor-and-debug/ https://github.com/DamienFremont/blog/tree/master/20170603-unity3d-use-monodevelop-script-editor-and-debug/

References

http://answers.unity3d.com/questions/1240640/how-do-i-change-the-default-script-editor.html http://answers.unity3d.com/questions/1240640/how-do-i-change-the-default-script-editor.html

Origin

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