Stepping through an application in the EGL debugger
As explained in EGL debugger, the EGL debugger provides the following commands to control execution of a program during a debugging session:
- Resume
- Runs the code until the next breakpoint or until the end of the program.
- Run to Line
- Allows you to select an executable line in the Source view and run the code to that line.
- Step Into
- Runs the next EGL statement and pauses. The program stops at the first statement of a called function.
- Step Over
- Runs the next EGL statement and pauses, but does not stop within functions that are invoked from the current function.
- Step Return
- Returns to an invoking program or function.
With the exception of Run to Line, each of the commands can be accessed in the following ways:
- Click the appropriate button on the toolbar of the Debug view; or
- Click the appropriate menu item on the Run menu; or
- Right-click a highlighted thread in the Debug view, then click the appropriate menu item.
To use Run to Line, do as follows when the program is paused:
- Position the cursor in the left margin of the Source view at an executable line, then right-click. A context menu displays.
- Click Run to Line.
When using Run to Line, keep in mind the following:
- The operation is not available from the Debug view or the Run menu
- Run to Line stops at enabled breakpoints
Related concepts
EGL debugger
Related tasks
Creating a launch configuration in the EGL debugger
Starting a non-J2EE application in the EGL debugger
Using breakpoints in the EGL debugger
Viewing variables in the EGL debugger