|
|
HP WDB-GUI Reference Manual: HP-UX 11i v2 > Chapter 3 Debugging with WDB GUIBrowsing 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. The most direct way to view source for a function is to:
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 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:
You can reuse a previously entered function filter by clicking on the Recent Filters button. 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.
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.
|
|