Contents
Keyword Index
Using the WDB GUI
Reference Information
Troubleshooting
Using Help |
|
|
Overview
The Source view lets you see information about the code you are debugging. You can access the Source view from the main WDB GUI window by clicking the Source tab in the upper tabbed area. 
Source View Description
Area |
Description |
Source Path area |
Allows you to see the source path of the current file. Located directly below the Source tab label.
|
Annotation area |
Allows you to see symbols related to the debugging process. (See the following table for symbol descriptions.) Located in the left column of the Source view.
|
Text area |
Allows you to see the text of the source file you are debugging. Located in the right column of the Source view.
You may also see line numbers for the source code listed in this area. You can turn line numbers on and off by editing your debugger preferences. |
Annotation Area Symbols
Symbol |
Description |
 |
The program counter that shows where the debugger will begin executing.
|
 |
A stack marker that indicates the current context, determined by the frame selected in the Call Stack view. |
 |
An enabled breakpoint.
|
 |
A disabled breakpoint.
|
NOTE: The WDB GUI allows you to open only one source file at a time. |
Pop-up Menu
In the Source view, click the right mouse button to display a pop-up menu that contains the following commands:
Command |
Action |
Show Next Statement |
Restores the context to the location of the program counter and updates all applicable views.
|
Quick Watch |
Displays the Quick Watch dialog box where you can see the value of a highlighted variable.
Quick Watch provides more detailed information than the dwell feature.
|
Insert/Remove Breakpoint |
Inserts or removes a breakpoint on the current line.
This command becomes Remove Breakpoint when an enabled breakpoint is set on the current line.
|
Enable/Disable Breakpoint |
Enables or disables a breakpoint that has already been set on the current line. This command is inactive when no breakpoint is set on the current line.
This command becomes Enable Breakpoint when a disabled breakpoint is set on the current line.
This command becomes Disable Breakpoint when an enabled breakpoint is set on the current line.
|
Edit Breakpoints... |
Brings up the Breakpoint dialog for the breakpoint on the current line. Inactive if there is no breakpoint on the current line.
|
Run to Cursor |
Executes the program until reaching the current cursor location.
|
Set Next Statement |
Moves the program counter to the current cursor location. |
Edit File |
Opens a separate, editable source tab for the file in the Source view. |
Open File in $EDITOR |
Opens the file show in the Source view in an external editor. The default editor is vi. To use a different editor, specify the editor in the environment variable EDITOR . |
Dwell Feature
The dwell feature allows you to quickly view the value of a variable or an expression. To use dwell, place the mouse pointer over a variable or expression and wait about a half-second. A window pops up, displaying the value of the variable or expression. For more information on dwell, see Viewing Variables with Dwell in the Viewing Your Code topic.
Tips
- To view source for a specific function, use the function browser (see Browsing Functions for details). The Source view to the top.
- On the View menu, click Source to quickly bring the Source view to the top.
- You cannot display the Source view in a separate window.

See Also

Return to Top
|