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.
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.
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”.
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