Previous Next
Debugging (Unix only)

This chapter is about:

  • using the SNiFF+ Debugger

SNiFF+ provides a graphical front-end to widely used debuggers such as gdb and dbx. It provides a menu interface to most of the commands and interprets the debugger output messages. The Source Editor is used to show the current stack frame. After starting the Debugger, you will set a breakpoint and try and find out exactly where the error occurs.

    On Windows NT/95
    The project's target is automatically loaded into Microsoft Developer Studio. For a description of the debug commands in Microsoft Developer Studio, please refer to the Microsoft product documentation.

In the Project Editor

  • To start the Debugger, choose Target > Debug complex.

  • The Debugger command line shell opens.

    Click for full size, then use Back button

        Note
        If the Debugger doesn't come up correctly, either gdb is not installed on your system or the back-end has not been specified in the Debugger preferences (for details, please refer to the Reference Guide).

In the Debugger Command Line Shell
In the Project Editor
  • You will be setting a breakpoint in the source file, main.C . To open the file, double click on it in the File List.

  • 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 tool bar.

    Click for full size, then use Back button