To start program execution or resume execution from the current
location, click on the Go push button on the push-button view of the
main window.
Letting your program run freely without debugger intervention is useful
in situations such as the following:
- To test for an infinite loop. In this case, you start execution;
then, if your program does not terminate and you suspect that it is
looping, click on the Stop push button. The source view will show
where you interrupted program execution, and the Call Stack menu
will identify the sequence of routine calls at that point.
- To execute your program directly to a particular location. In this
case, you first set a breakpoint at the location and then start
execution.
Once started, program execution continues until one of the following
events occurs:
- The program completes execution
- A breakpoint is reached (including a conditional breakpoint whose
condition is true)
- A watchpoint is triggered
- An exception is signaled
- You click on the Stop push button in the push-button view on the
main window.
Whenever the debugger suspends execution of the program, the source
view is updated and the current-location pointer marks the line whose
code will execute next.