How can I watch a global var in the debugger

Is there a way to set up a global var as a “watch” variable in the debugger so you can see its value updated as you step through code?

sure, why not? Just type in: globals.varname.

In fact you can watch anything, eg foundset.getSize() etc, etc. The sky is the limit.