Halting a running application

If the application that you are debugging is running, you can halt its execution. This suspends all threads in the job.

About this task

When you are debugging an application and you choose to halt, the application will suspend until you issue a resume or step action. If you are debugging a multithreaded application and would like to stop one thread while allowing the others to run, you can disable the thread while the application is stopped. For information about disabling and enabling threads, see the related topic below.

To halt application execution, do the following:

Procedure

  1. In the Debug view, select one of the threads or the node that represents your application.
  2. Do one of the following:
    • Click Suspend (Suspend icon) in the Debug view toolbar.
    • Right-click and select Suspend from the pop-up menu.

Results

This will halt the application. The current line of execution will be highlighted in the Debugger editor.

To resume a suspended application or job, do the following:

  1. Select the thread, one of its stack frames, or the connection node associated with it.
  2. Do one of the following:
    • Click Resume ( Resume icon) in the Debug view toolbar.
    • Right-click and select Resume from the pop-up menu.
    • Press F8.
    • Issue a step over command.
    • Issue a step into command.
    • Issue a step return command.

The application will resume execution and, if it runs to completion, call stack entries will no longer be displayed for the thread.


Feedback