SystemWorkbench for STM32 Debug perspective views |
Different views are visible to help to debug the application.
Debug View
The Debug View allows the user to manage the debugging of the application. It displays the stack frame for the suspended threads for each target the user is debugging. Each thread in the program appears as a node in the tree. It displays the process for each running target. If the thread is suspended, its stack frames are shown as child elements.
Variables
In the Debug Perspective, it is possible to monitor the variables with the Variables tab or the Expression tab. Note that, during debug session, the code execution need to be paused.
To add variable to be monitored - highlight it, press right mouse button and select Add Watch Expression. It will appear in Expressions tab then.
Values which has changed from previous project pause will be presented on yellow background.
Registers
The Debug Perspective provides also a way to monitor the CPU and peripherals registers using the Registers and I/O Registers tabs. Note that, during debug session, the code execution need to be paused.
To add peripheral register to watch - click right mouse button and select Activate.
Peripheral icon and its registers names will be highlighted in green and will contain updated values on next debug pause.
Values which has changed from previous project pause will be highlighted in red.
Handling Debug Session
The following figure shows the button to be used to handle a debug session.
For more information about C/C++ development tools in Eclipse, please see C/C++ Development User Guide.