Using the WDB GUI ·
Browsing Functions
Home and Help IconsKeyword IndexHomeUsing 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
Setting Source Paths
Setting Object Paths
Viewing Your Code
{short description of image} 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 Viewing Source for a Function
Bullet Specifying a Function Filter
Bullet Listing and Viewing Member Functions
Bullet Tips
Bullet See Also

Line Graphic

Overview

WDB GUI makes it easy to lookup and visit functions in your source code. You can specify a regular expression filter to control which functions are listed, and you can visit the source of a listed function simply by clicking on the name in the list.

The function browser is in the tool bar at the top of the debugger's main window.

Line Graphic

Viewing Source for a Function

The most direct way to view source for a function is to:

  1. In the Function To Visit text box, type the function name.
  2. Press RETURN.
    Source for the function will be displayed in the Source View.

Alternatively, if you've entered a function filter, you can select the function to view by clicking on the Function Matches button and selecting from the resulting list of functions. You can also select from a list of recently viewed functions by clicking on the Recent Functions button.

Line Graphic

Specifying a Function Filter

Specifying a function filter is useful if you don't recall the exact name of a function, or if you want to view source for a number of similarly named functions. For example, if you want to view various functions with the string "foo" in their names, do the following:

  1. Type "foo" in the Function Lookup Filter text box.
  2. Press RETURN.
    The status area at the bottom of the debugger window shows the number of matches.
  3. Click the Function Matches button and choose from the list of functions. Given the filter "foo", the functions "foobar", "barfoo", and "barfoobar" would all be listed as function matches.

You can reuse a previously entered function filter by clicking on the Recent Filters button.

Function Filters are Regular Expressions

Function filters are regular expressions. This allows you to, for example, precede an expression with '^' to match the beginning of a function name, or follow the expression with '$' to match the end of a function name.

NOTE: Unless you specify otherwise, ".*" is assumed to precede and follow the filter you enter. Therefore, for example,
  • "foo" is equivalent to ".*foo.*".
  • "^foo" is equivalent to "^foo.*".
  • "foo$" is equivalent to ".*foo$".
Line Graphic

Listing and Viewing Member Functions

You can list all the member functions of a particular class by entering the class name followed by "::" in the Function Lookup Filter text box. You can then view the source for member functions by choosing the desired member function from the Function Matches list.

For example, to list function members of class Shape, you would enter "Shape::" in the Function Lookup Filter text box. You could then view the source for member functions of Shape by clicking on the Function Matches button and then selecting the member function of interest.

Line Graphic

Tips

  • When starting a debugging session, try selecting the Recent Filters and Recent Functions buttons. Both recent function lookup filters and recently viewed functions are saved between debugging sessions.
  • To specify how many filters and functions are saved across sessions, see Setting Debugger Preferences.

Line Graphic

See Also

Line Graphic

Return to Top