# Debugger

Source-Navigator works with external stand-alone debuggers, such as Cygnus InsightTM, which may be obtained from Cygnus by contacting sales@cygnus.com.

## Launching the Debugger

The following steps are necessary to start your debugger from Source-Navigator:

1. Launch Source-Navigator:

   On Windows, from the Start menu, select Programs -> Source-Navigator 99r1 Enterprise Edition -> Source-Navigator 99r1 Enterprise Edition.
   On UNIX, enter `./snavigator` to launch Source-Navigator without putting it in the background.

2. Open the project to debug.
3. Choose File -> Project -> Project Preferences -> Others to set the debugging preferences.

   #### Others Tab

4. Enter the path to the debugger executable in the GNU Debugger Command text box.

   On Windows, the command is `gdb`.
   On UNIX, the command is `xterm -e gdb`.

5. Click OK to close the window.
6. Choose Tools -> Debugger to launch the Program to Debug dialog box.

   #### Program to Debug Dialog Box

7. Enter the name of the application you want to debug; you can also click the "..." button and browse to the application in the Open dialog box. Enter (or browse to) a working directory.

   The application name and command line you entered are saved in the project database, and are used as the default values the next time you launch the debugger from Source-Navigator.

For further information, refer to your debugger's documentation.