Debug the Application#

  1. In the Project Explorer pane, select the project name.

  2. To Enable GNU Debugger Select Preferences in Launcher Tab.

  3. Expand Simplicity Studio Tab and click on Debuggers. Select GNU Debugger and Click on Apply and Close.

    Select GNU Debugger

  4. From the menu bar, select Run > Debug As > 1 Silicon Labs ARM Program.

    Switch to debug mode

  5. Studio will switch to debug mode and halt execution at the main() function in your application.

  6. Add a break point in the desired location of the code and click the Resume button (having an icon with a rectangular bar and play button).

  7. Execution will halt at the break point.

  8. Use the following debug functions to direct the execution of the code:

    • Step In button (having an icon with a arrow pointing between two dots).

    • Step Over button (having an icon with an arrow going over a dot).

    • Step Out button (having an icon with an arrow pointing out from between two dots).

    Debug options

  9. View the standard output or enter input data as needed.