Controlling your debug execution

You can control your debug execution in various ways, but they all rely on a core set of debug controls.

Controlling debug execution: Debug view

You can control how many steps the program runs before it suspends. Use Debug view to control your program flow.

To control a debug execution

  1. In Debug view, select the thread you want to control.
  2. Click a Step icon.
  3. Repeat Step 2 as required.
  4. Complete the debug session by selecting one of the controls.

Enabling debug hotkeys

If you run your debug session outside of Debug view, you can use either the hotkeys or the Run menu item to step through your program. You customize each perspective separately.

To enable debug hotkeys

  1. Open a perspective.
  2. On the Window menu, click Customize Perspective.
  3. In the left pane, expand Other and select the Debug checkbox.
  4. Click OK.

Controlling debug execution: C/C++ Editor

You can control your debug session from the C/C++ Editor by having the program run until it reaches a selected line. If the program never reaches that line, the program runs until completion. You enable this option separately in each perspective. The option is enabled by default in the Debug perspective.

To enable debug execution using the C/C++ Editor

  1. On the Window menu, click Customize Perspective.
  2. In the left pane, expand Other and select the C/C++ Debug checkbox.
  3. Click OK.

    The controls for debug execution in the C/C++ Editor are enabled for the active perspective.

To debug using the C/C++ Editor

  1. In the C/C++ Editor, click on a line of code.
  2. Right-click and click Run To Line.

    The program runs until it reaches the selected line.

Copyright IBM Corporation
 2000, 2002. All Rights Reserved.