Previous Topic: How a Traced Program ExecutesNext Topic: Add a Line Breakpoint


Use Breakpoints to Control Program Execution

Breakpoints suspend program execution where the breakpoint is set. Breakpoints are displayed in the vertical ruler in the PAD Code View editor and in the Breakpoints view. Blue circles identify enabled breakpoints and white circles identify disabled breakpoints.

You can enable and disable breakpoints in the Breakpoints view or in the PAD Code View editor window. When a breakpoint is enabled, it suspends program execution whenever the breakpoint is reached. When a breakpoint is disabled, execution is not suspended when the breakpoint is reached.

When the program execution is suspended as a result of encountering a breakpoint, you can use the Debug view step controls to step through the execution of the program statement-by-statement. If the Diagram Trace Utility encounters a breakpoint while performing a step operation, it suspends program execution at the breakpoint and ends the step operation.

The Diagram Trace Utility provides the following line breakpoints to help you manage the step execution in the application program being traced.

Step Over

Resumes execution, stopping at the next statement either in the same method or (if you are at the end of a method) in the method from which the current method was called.

Step Into

Resumes execution, stopping at the next statement either in the same method, a called method, or (if you are at the end of a method) in the method from which the current method was called.

Step Return

Resumes execution, stopping at the next statement in the method from which the current method was called.

Step with Filters

Applies a set of step filters defined on the Diagram Trace Step Filtering Preferences page. Use the Use Step Filters button in the Debug view toolbar to turn Step with Filters on and off.

When the action is turned on, each of the step actions (over, into, return) applies the set of step filters defined on the Diagram Trace Step Filtering Preferences page, which you can access from the main menu bar by selecting Window, Preferences, Diagram Trace, Step Filtering. When a step action is invoked, stepping continues until the execution reaches an unfiltered location or encounters a breakpoint.

Run to Line

Suspends execution at a line without setting a breakpoint. This feature requires a source line to be selected before you select Run to Line. Execution of a suspended program resumes until the selected line is executed.

It is possible that the line may never be encountered and that the program will not suspend. Breakpoints and exceptions can cause the program to suspend before reaching the specified line.

Skip Over

Resumes the application (without executing the current statement), stopping at the next statement either in the same method or (if you are at the end of a method) in the method from which the current method was called.

Skip to Line

Continues execution from the current statement up to the line containing the cursor and skips this line instead of executing it. You can also use this feature to skip execution of a sequence of statements.

More information:

Set Diagram Trace Step Filtering Preferences