Stepping Over, Into, and Out of Routines

Once you've suspended a program debug session, the Debug view provides controls to walk through program code, including commands for:

Stepping over a routine

Use the Step Over command () to execute the current statement and advance to the next statement in the source code. If the current statement is a routine call, program execution continues until reaching one of these points:

To step over a routine:

Stepping into a routine

Use the Step Into command () to execute one source-code statement at a time and follow execution into a routine call.

When stepping through a program in a debug session the IDE attempts to match the program counter (PC) location in the executable with a known project source file. If there is no source file associated with the PC the debugger displays in the Debug view the current PC address of the thread (e.g. 0x6002CC11(EUSER.DLL)()) instead of the function name. At this point you can open the Disassembly view to step through the assembler code. This most commonly happens when trying to step into Symbian OS code. We recommend that you Step Return out of the OS code and back into your project to continue debugging.

Stepping out of a routine

Use the Step Return command () to execute the rest of the current routine and stop program execution after the routine returns to its caller. This command causes execution to return up the calling chain.

To step out of a routine:

Other references