Unable to "watch" a variable if used in a synchronize

Currently using 10.4 CE but noticed this as well in Seattle. If a variable (say “dummy”) is declared in a procedure and within that procedure a synchronize is used and it accesses “dummy”, if I use “Watch List” to view “dummy” it doesn’t work. “Dummy” is also missing from “Local Variables”.

Is this just the price you pay for using synchronize or is there a workaraound?


After years of being annoyed by this, I did some playing and found a workaround. Posting here in case anyone else is interested - I moved the declaration of the variable from local to outside of the procedure.