trace {print a; where}
does a trace, prints the value of a, and executes the where command at every source line.
trace at 17 if a .gt. 10
traces line 17 if a is greater than 10.
trace "bar":20
traces line 20 of file bar.