There are a number of ways to end a debug session. Various methods are described in the following sections.
Terminating results in an immediate end to a debug session.
To terminate a debug session:
When you are launching a debug session for an HTML script application, the workbench launches a browser to run the application or it attaches to an existing browser (depending on your choice in the launch configuration). When you terminate the debug session, you can have this browser terminated or you can have it left running. By default, you are prompted to choose to terminate the browser or to leave it running. If you want to have the browser terminated by default or leave it running by default, you can set debug preferences accordingly. For information about setting debug preferences, see the related topic.
To terminate all debug sessions, right-click in the Debug view and choose Terminate All from the pop-up menu.
If you have terminated one or more sessions and want to remove them from the Debug view, right-click in the Debug view and choose Remove All Terminated from the pop-up menu.
If you are running the debugger client on Windows® and debugging an application, disconnecting terminates the debug session and of the application.
To disconnect from a debug session:
When you are launching a debug session for an HTML script application, the workbench launches a browser to run the application or it attaches to an existing browser (depending on your choice in the launch configuration). When you disconnect the debug session, you must manually terminate the browser. If you choose to leave the browser running, the Microsoft® Script debugger might open.