Terminating a debugging session

There are a number of ways to end a debugging session. This topic describes various methods.

About this task

Note: If the program was launched via a launch configuration and the launch configuration Terminate debug session on program completion check box was not selected, you can suspend program execution and then perform a terminate action or you can terminate the application as it is running.

Settings, such as breakpoints, are saved upon termination of a debugging session. However, these settings are not saved by launch configuration. Therefore, if you create more than one launch configuration for the same application, settings such as breakpoints will be the same for each launch configuration. The advantage to creating more than one launch configuration for the same application, is that you can set different arguments as parameters to the program in the launch configurations.

Terminate

About this task

Terminating results in an immediate end to a debugging session, and the program that you are debugging continues to run. You can terminate a debugging session when the application is running and when program execution has suspended.

To terminate a debugging session:

Procedure

  1. In the Debug view, select the launched debugging session that you want to terminate.
  2. Do one of the following:
    • Select Terminate from the workbench Debug menu.
    • 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.
    • Click the Debug view Terminate button.

Results

To terminate all debugging 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 would like to remove them from the Debug view, right-click in the Debug view and choose Remove All Terminated from the pop-up menu.

When you are debugging an interactive job, terminating the debugging session will not terminate the running program. Switch to the 5250 session and terminate the program before starting a new debugging session for the interactive job.

Running an application to termination

About this task

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

Feedback