## Debug view

The Debug view provides an overview of the debug session as it relates to the executing program. The target debugging information is shown in a tree hierarchy. The items that appear there include:

- Launch instance () - launch configuration name and type
- Debugger instance () - debugger name and state
- Executable instances () - other executables called by the launch instance
- Thread instance () - thread number and state
- Stack frame reference () - displays stack frame number, function, filename, and file line number when symbols are available and stack frame number, memory address, and filename when symbols are not available

NOTE The number beside the thread label is a reference counter, not a thread identification number (TID).

The CDT displays stack frames as child elements. It displays the reason for the suspension beside the thread, (such as end of stepping range, breakpoint hit, and signal received). When a program exits, the exit code is displayed.

In addition to controlling the individual stepping of your programs, you can also control the debug session. You can perform actions such as terminating the session and stopping the program by using the debug launch controls available from Debug view. See Table 1 for details.

Figure 1 shows the Debug view. Table 1 explains the items in the view.

Figure 1 - Debug view

##### Table 1 Debug view—items

Item | Icon | Explanation
--- | --- | ---
Resume |  | Click to perform these tasks: Continue execution up to the next breakpoint, watchpoint, or eventpoint Run the program until it exits Continue execution of a currently stopped program
Suspend |  | Click to stop (pause) program execution.
Terminate |  | Click to terminate program execution. This ends the debugging session.
Disconnect |  | Detaches the debugger from the selected process (useful for debugging attached processes). NOTE After detaching the debugger from an on-device process, closing TRK on the device will also close the process.
Remove All Terminated |  | Clears all terminated processes in Debug view.
Restart |  | Returns the debugger to the beginning of the program and begins execution again. This behavior is equivalent to killing execution, then starting a new debugging session.
Step Over |  | Click to execute the current line, including any routines, and proceed to the next statement.
Step Into |  | Click to execute the current line, following execution inside a routine.
Step Return |  | Click to continue execution to the end of the current routine, then follow execution to the routine’s caller.
Instruction Stepping Mode |  | Activate to enable instruction stepping mode to examine a program as it steps into disassembled code.

#### Other references

- Debugging overview