You debug applications that run in an external emulator using the Visual Studio debugger. When debugging starts, the IDE launches the emulator. When debugging stops, the emulator exits.