5.2. Execution
Execution of a program in the debugger can be finely controlled. The program can be executed in single steps, or allowed to continue until it encounters a breakpoint. Executing like this is essential for tracking program behaviour. Like a video editing session, the program can be executed in slow motion with the ability to go forward, pause, stop, and so on.
The methods that can be used to execute a program in the debugger are described in the next few sections.
5.2.1. Single stepping (step in)
Single stepping executes only one statement of the program (from the place where it has stopped) and then returns control. If the statement that is executed contains one or more functions, the debugger tries to step inside the functions (in the sequence in which the functions are executed). Once the statement is executed and control is passed back, it is possible to study the various program parameters.
If the program need to been started to use single stepping.
Choose the menu item -> or click on the icon in the Debug toolbar to step into a program.
5.2.2. Single stepping (step over)
Step over is similar to step in, except that it does not step inside any function in the statement being executed. The statement will be executed in one go.
Choose the menu item -> or click on the icon in the Debug toolbar to step over statements in a program.
![]() | If a dynamic library is loaded during the step, the program will not stop at the end of the step. But it will run until it finds a breakpoint or you stop it. |
5.2.3. Single stepping (step out)
Step out will execute the current function until it returns. The program will be stopped once it exits from the function. Step out is not really single stepping, because it does not only execute a single statement — it executes the whole function until that function returns to the calling function.
Choose the menu item -> or click on the icon in the Debug toolbar to step out in a program.
5.2.4. Run/Continue
This option will continue the execution of the program until a breakpoint is encountered, or the program exits.
Choose the menu item -> or click on the icon in the Debug toolbar to continue the execution of a program.
