Stepping Through the Code

The Debug perspective has many other capabilities that have not been explored in this lab. The most important is the ability to step through the code to debug it.

  1. Continuing in lab6, right-click debug hierarchy in the Debug view (System Debugger usingDebug_lab6.elf), and clickDisconnectin the menu.
  2. Right-click the top-level debug folder again, and clickRemove all Terminatedin the menu.
  3. Click on the BUG icon to launch the debugger. Then step through the code using the step-into, step-over, and step-return buttons.
  4. As you step through the code, examine the values of different variables.