Contents | Previous | Next

#
Debugger

Source-Navigator works with the Red Hat InsightTM debugger, which is based on gdb, a popular open-source debugger. To get Insight, go to http://sourceware.cygnus.com/insight.

## Launching the Insight Debugger

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

1. Launch Source-Navigator:

   On UNIX, change to the `<`install directory`>/bin` directory and type `./snavigator` to launch Source-Navigator without putting it in the background.
   On Windows, double-click the Source-Navigator icon (or snavigator.exe). It is located in `<``install directory``>/bin`.

2. Open the project to debug.

3. From the File menu, select Project -> Project Preferences -> Others to set the debugging preferences.

   Others Tab

4. Enter `gdb` in the Insight Debugger Command text box.

5. Click OK to close the window.

6. From the Tools menu, select Debugger to launch the Program to Debug dialog box.

   Program to Debug Dialog

7. In the Program field, 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.

   In the Working Directory field, enter (or browse to) a working directory.

   On UNIX, in the Xterm field, enter `xterm -e` if you are debugging a console application.

   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.

8. Click OK to launch the debugger.

Contents | Previous | Next