Reference Information · Source View Home and Help IconsKeyword IndexHomeUsing Help
Line Graphic
Line Graphic


Contents

Keyword Index

Using the WDB GUI

Reference Information
Main Window
Menus
Toolbar Icons and Shortcut Keys
Views
{short description of image} Source View
Disassembly View
Command View
Watch View
Local Variables View
Call Stack View
Threads View
Registers View
Memory Usage View
Build View
Dialog Boxes
Load Program Dialog Box
Open File Dialog Box
Save/Restore Debug Session Dialog Box
Breakpoints Dialog Box
Source File Paths Dialog Box
Object File Paths Dialog Box
Signals Dialog Box
Find Dialog Box
Debugger Preferences Dialog Box
Quick Watch Dialog Box
Fix List Dialog Box
Memory Check Dialog Box

Troubleshooting

Using Help



Bullet Overview
Bullet Source View Description
{short description of image} Pop-up Menu
{short description of image} Dwell Feature
Bullet Tips
Bullet See Also

Line Graphic

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. Line Graphic

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
Program Counter The program counter that shows where the debugger will begin executing.

Stack Marker A stack marker that indicates the current context, determined by the frame selected in the Call Stack view.
Enabled Breakpoint An enabled breakpoint.

Disabled Breakpoint A disabled breakpoint.


NOTE: The WDB GUI allows you to open only one source file at a time.
{short description of image}

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.
Line Graphic

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.Line Graphic

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.

Line Graphic

See Also

Line Graphic

Return to Top