Run to a Specific Statement or Instruction

You can run from the current execution point to a specific statement or instruction in two ways:

  1. By selecting the statement you want to stop execution at, and issuing the Run to This Statement command.
  2. By selecting the statement you want to stop execution at, setting a statement breakpoint, and issuing the Run command.

This page describes the first method above. See the Procedures help below for information on setting breakpoints and issuing the run command.

To run to a specific statement, do the following:

  1. In the Source view or Disassembly view that contains the statement or instruction you want to run to, select the applicable statement or instruction.
  2. Click mouse button 2. A popup menu appears.
  3. Select Run to This Statement from the popup menu, or from the cascading menu off the object.

The program runs until it reaches the statement you selected; it does not execute this statement. You can then use step commands to step through or over that statement or instruction, view variables, storage and registers, jump over the statement or instruction without executing it, and perform other debugging tasks.



Jump Over Code Without Executing It
Run a Program Under Debug Control
Set a Statement Breakpoint
Step through Source Code