HP WDB GUI 5.7 Reference Manual (September 2007)
Debugging with WDB GUI
Browsing Functions
Chapter 3 43
Browsing Functions
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.
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.
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.