Using the WDB GUI · Setting Source Paths Home and Help Icons Keyword Index Home Using Help
Line Graphic
Line Graphic

Contents

Keyword Index

Using the WDB GUI
Starting and Exiting the WDB GUI
Loading a Program and Changing Program Settings
Opening Source Files
Changing the Working Directory
Saving and Restoring Debug Sessions
{short description of image} Setting Source Paths
Setting Object Paths
Viewing Your Code
Browsing Functions
Setting Signal Handling
Finding Specific Text in Your Code
Using the Command View
Using the Watch View
Using Quick Watch
Using the Local Variables View
Using the Call Stack View
Using the Threads View
Using the Registers View
Examining Memory Use
Using the Program Console
Using Breakpoints
Advancing Through Your Program
Fixing Code from within the Debugger
Starting and Stopping the Debug Process
Setting Debugger Preferences
Customizing Colors and Fonts

Reference Information

Troubleshooting

Using Help



Bullet Overview
Bullet Adding and Deleting Source Paths
Bullet Changing the Order of Source Paths
Bullet Tips
Bullet See Also

Line Graphic

Overview

You can set source paths so that the WDB GUI can locate the source files for the currently loaded executable. You can also delete and change the order of priority for the source paths that you have set. Line Graphic

Adding and Deleting Source Paths

To add a source path

  1. On the Edit menu, click Source File Paths.
  2. Click the ... button in the Source File Paths dialog box.
  3. In the Add Source File Path dialog box, double-click in the Directories list to select the appropriate path.
  4. When the proper path appears in the Selection box, click Add.
  5. Repeat steps 3 and 4 to add as many paths as you want. Click Close.
  6. In the Source File Paths dialog box, verify that the source paths you selected appear in the Source File Paths list. Click OK.

To delete a source path

  1. From the Edit menu, click Source File Paths.
  2. In the Source File Paths list, select the source path you want to delete.
  3. Click Delete. The selected source path disappears from the Source File Paths list.
  4. Click OK.

To replace a source path

  1. On the Edit menu, click Source File Paths.
  2. Double-click the directory you want to replace in the Source File Paths text box
  3. Click the ... button in the Source File Paths dialog box.
  4. In the Add Source File Path dialog box, click in the Directories list to select the new directory you want to replace the old one with.
  5. When the proper directory appears in the Selection box, click OK.
  6. In the Source File Paths dialog box, verify that
    • the directory you want to replace is highlighted in the Source File Paths text box.
    • the new directory you selected appears in the directory edit box (to the left of the Add button).
  7. Click Replace.
  8. Click OK.
Line Graphic

Changing the Order of Source Paths

In the Source File Paths list, the paths are searched in the order they are listed. That is, the WDB GUI will search the first path listed, then the second path, and so on.

To move a source path up

  1. On the Edit menu, click Source File Paths.
  2. In the Source File Paths list, select the source path you want to move up.
  3. Click Move Up until the path is where you want it in the list.
  4. Click OK.

To move a source path down

  1. On the Edit menu, click Source File Paths.
  2. In the Source File Paths list, select the source path you want to move down.
  3. Click Move Down until the path is where you want it in the list.
  4. Click OK.
{short description of image}

Tips

  • One way to save your source path information is to save your debug session.
  • You can automatically set source file paths every time WDB starts by specifying paths in the .gdbinit file. To automatically load source file paths, add the following line to the .gdbinit file:

    directory path

    See Creating the .gdbinit File for more information about the .gdbinit file.

Line Graphic

See Also

Line Graphic

Return to Top