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