Some advice on debugging with MonoDevelop

I’ve read in a lot of places that to debug Unity with mono develop you need to close unity and allow mono develop to start it when you Debug inside of it. This is not just very cumbersome but also not true, instead follow these steps:

When you have both unity and mono develop running, go to mono develop and press “attach debugger”, select the unity editor, make sure “unity debugger” is the selected debugger and then press “debug”, here’s a picture for more detail:

You can then go to unity, start your game and it will debug properly.

I made the same observation the other day primarily because if I let MonoDevelop start Unity and attach the debugger itself then I only get one debug session. The next time I try to attach to debug it fails.

Launching MonoDevelop Unity by themselves and simply attaching is the best way to do it.