Sun Studio 12: Debugging a Program With dbx

Using Variable Scope as a Filter

Variable scope can be used in setting a breakpoint filter. In this example, the current scope is in function foo() and local is a local variable defined in main():


(dbx) stop access w &main`local -if pr(main`local) -in main