Debugger Source Panel
|Top Previous Next|
Execution Point. The Source Editor lets you step through parts of the program and monitor what occurs. To do this, the debugger must keep track of the location in code. This location is called the "Execution Point."
The Execution Point is the line in the source code that corresponds to the location of the I2L Program Counter. A dark blue highlight appears in the source code at the Execution Point. Since there may be multiple I2L instructions for each line of source code, the Execution Point points to the first I2L instruction on the line.
When the program first starts or is reset, the highlight bar will appear at the top of the program, usually somewhere in the middle of the variable declarations. This is because the program must execute initialization code that corresponds to the variable declarations and not to the main code or code inside procedures. In fact, if you have used array variables, the execution point may skip from array declaration to array declaration as EXPL initializes and reserves memory for the variables.
The same thing may occur with XPL subroutines, since subroutines can also have array declarations. This means that when you step into a subroutine, the Execution Point may start on the local variable declarations or on the last line of a nested subroutine.