Previous Next
The Debugger command line

After starting the Debugger, you will set two breakpoints and watch what happens to a variable between the first and the second breakpoint.

  • Make sure that the right debugger is selected in your Preferences > Platform view.

In the Project Editor
To start the Debugger:
  1. In the Project Tree, make sure that pico.shared is highlighted. If it isn't, click on its name to highlight it.
  2. Choose Target > Debug pico.
    The Debugger opens.

    Click for full size, then use Back button

In the Debugger Command Line Shell
  • For a summary of debug commands, type help at the command line prompt (gdb) .

  • Note that many of these commands can also be posted from the Source Editor.
In the Project Editor
You will be setting a breakpoint in the source file,
display.c . To open the file:
  1. In the Project Tree, make sure that lib.shared is highlighted.
  2. Right-click anywhere in the Project Tree and choose Context menu > Select From lib.shared Only.
  3. In the File List, double-click on display.c to open the file in the Source Editor.
    The file is opened in the Source Editor and, because you are in debug mode, a row of buttons for the most commonly needed debug commands has been added below the menu bar.

    Click for full size, then use Back button