# Live Debugging in Unity 3

**URL:** <https://discussions.unity.com/t/live-debugging-in-unity-3/423857>\
**Category:** Scripting\
**Tags:** Scripting\
**Created:** [September 25, 2010, 12:50am UTC](https://discussions.unity.com/t/live-debugging-in-unity-3/423857 "2010-09-25T00:50:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon\_27663045](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@anon\_27663045](https://discussions.unity.com/u/anon_27663045)\
**Post date:** [September 25, 2010, 12:50am UTC](https://discussions.unity.com/t/live-debugging-in-unity-3/423857/1 "2010-09-25T00:50:38Z")

</div>

Hello,

I found a page that showed how to setup live debugging with Monodevelop and Unity 3, but I’ve lost track of it. Can anyone send me a link to a page that shows how to get it going? I’ve searched through the forum, but didn’t find it.

Thanks!  
-d

---

<div class="post-metadata">

**Author:** ![anon\_27663045](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@anon\_27663045](https://discussions.unity.com/u/anon_27663045)\
**Post date:** [September 27, 2010, 3:48am UTC](https://discussions.unity.com/t/live-debugging-in-unity-3/423857/2 "2010-09-27T03:48:52Z")

</div>

Basically I’m just trying to step through some code using the new debugging features in Unity 3. Any help on how to do this would be great.

Thanks,  
-d

---

<div class="post-metadata">

**Author:** ![andeeeee](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@andeeeee](https://discussions.unity.com/u/andeeeee)\
**Post date:** [September 27, 2010, 8:02pm UTC](https://discussions.unity.com/t/live-debugging-in-unity-3/423857/3 "2010-09-27T20:02:09Z")

</div>

First, you should enable MonoDevelop as the external script editor in the Unity preferences. Then, double click a file in the project panel to open it with MonoDevelop. You will generally want to add a breakpoint and then choose Run \> Run With \> Unity Debugger from the menu. After a short pause, you should be ready to go. Press Play in Unity and the code should stop when the breakpoint is reached. You can then switch to MonoDevelop to single step, look at variables, etc.

---

<div class="post-metadata">

**Author:** ![diegoleao](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/diegoleao/32/553333_2.png) [@diegoleao](https://discussions.unity.com/u/diegoleao)\
**Post date:** [December 6, 2010, 4:05am UTC](https://discussions.unity.com/t/live-debugging-in-unity-3/423857/4 "2010-12-06T04:05:00Z")

</div>

This is the link you were looking for: [http://answers.unity3d.com/questions/15633/monodevelop-2-4-with-unity-3-0](http://answers.unity3d.com/questions/15633/monodevelop-2-4-with-unity-3-0)

I was having problems setting up monodevelop with Unity for the first time, and this solved it. The correct answer is the one from “pky99”:  
"First, under the Unity Editor, go to “Preference” then click on “External Script Editor”, browse the folder where you install Unity 3. In the Unity 3 folder, you will see a folder called “MonoDevelop”. Open the folder “MonoDevelop” then click on the “MonoDevelop” exe shortcut. Next press “Sync Monodevelop Project” under Assets menu. Then it will auto launch the MonoDevelop editor with the Unity Debugger.

(Note, please do not point to the actual “MonoDevelop” exe file, this will not be work for unity debugger. The unity debugger only work if you point to the “MonoDevelop” exe shortcut under Unity 3 folder)"

Aditionally, you may need to point the “Editor” field in “MonoDevelop \>\> Preferences \>\> Unity \>\> Debugger” to your “Unity.exe”.

---

<div class="post-metadata">

**Author:** ![raymix](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/raymix/32/435207_2.png) [@raymix](https://discussions.unity.com/u/raymix)\
**Post date:** [December 6, 2010, 5:18am UTC](https://discussions.unity.com/t/live-debugging-in-unity-3/423857/5 "2010-12-06T05:18:32Z")

</div>

Hi guys. Thanks for tips

I followed both of your steps, and ran project with unity debugger, Monodevelop keeps hanging up on me. Just stops responding  
Unity Editor works, but Pressing Play/Pause and syncing again does not work

I am running Windows 7 64 bit and Unity 3 free  
I pointed to Shortcut of MonoDevelop and as debugger i pointed to Unity.exe in editor folder

edit: solved:  
ok nevermind. I actually had to close current Unity editor instance with MonoDevelop open and actually press Debug (F5), not Run With \>\> Unity Debugger
