Search Unity

How to stop the UnityEditor from Monodevelop while Debugging?

Discussion in 'Editor & General Support' started by Shizen, Feb 1, 2013.

  1. Shizen

    Shizen

    Joined:
    Dec 31, 2012
    Posts:
    14
    Basically, I was hoping someone could tell me how to get the UnityEditor to stop "playing" from MonoDevelop. For instance, say you are debugging and realize you've got a bug that's going to cause Unity to freeze up (requiring you to kill it from the Task Manager). You'd like to not have to do that, and you are in MonoDevelop, attached and debugging, but hitting either stop or detach will just let the UnityEditor merrily continue on into non-responsive freezeville. I can do an immediate evaluation of EditorApplication.Exit(0);, but that only saves me opening the task manager. I can't use EditorApplication.isPlaying or isPaused because they only trigger on frame boundaries, and typically the freeze is expected to occur during this frame. Anyone know? Is it even possible?