Exiting the Debugger (Magic xpi 3.x)
You can stop debugging a project by clicking from the toolbar or selecting Close from the Debugger menu.
If you are in Open mode, this stops the Debugger and returns you to Edit mode.
If the project is running or is attached to a project, when you select Close the project is closed/returns to production mode.