Previous Next
Setting Breakpoints

Let's set a breakpoint at the start of function clearcursor . To do so:
To set this breakpoint:

  1. In the Source Editor's Symbol List, click on clearcursor (f) .
    The Editor is positioned at the
    clearcursor function.
  2. To set the breakpoint, press Break At.
    A small stop sign at the beginning of the line indicates the breakpoint.

    Click for full size, then use Back button

  3. In the Debugger, select the Breakpoints tab. Notice that the breakpoint is listed in the Breakpoints list.
  4. Press the Show button.
    The Source Editor is positioned to the source code line in which the breakpoint is set.
Closing the Debugger
  1. To close the Debugger, choose Tools > Close Tool.
  2. Close all open SNiFF+ tools except for the Launch Pad.
  3. In the Launch Pad, close the pico.shared project by highlighting it and choosing
    Project > Close Project pico.shared.
Conclusion
This concludes the Edit/Compile/Debug tutorial. In this part of the C Tutorial you were introduced to:
  • Setting Make attributes for a C project

  • Building a SNiFF+ project and all the subprojects that it depends on

  • Using the Shell tool to jump to errors in source files

  • Using the Gdb Debugger to debug executables

In the tutorial we can only give you a few hints and tips to help you on your way. To get a better understanding of how to edit, compile and debug projects in SNiFF+, we recommend experimenting. To really appreciate what SNiFF+ can do for you, you really need to work with it.
What's next
The only SNiFF+ tool that should now be open is the Launch Pad.
The next part of the C tutorial introduces you to
  • Using SNiFF+ for multi-user team projects