Terminating a debug session

There are a number of ways to end a debug session. Various methods are described in the following sections.

Terminate

Terminating results in an immediate end to a debug session.

To terminate a debug session:

  1. In the Debug view, select the debug target that you want to terminate.
  2. Perform one of the following tasks:
    • Select Run > Terminate.
    • Right-click and select Terminate from the pop-up menu. Alternatively, you can select Terminate and Remove to terminate the session and remove it from the Debug view.

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.

Disconnect

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:

  1. In the Debug view, select the debug target that you want to disconnect from.
  2. Click the toolbar Disconnect push button or right-click the debug target and select Disconnect from the pop-up menu.

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.

Resume (Run)

If you are debugging an application that runs to termination, and which contains no active breakpoints, choosing to Resume a suspended thread will result in an end of the debug session (that is, the program will run to completion and the debug session will terminate).

Terms of use | Feedback
(C) Copyright IBM Corporation 2003, 2005. All Rights Reserved.