Observe window closes on compile

I don’t know if this is new behavior or not, but I think it might be.

If I’m in debugging mode and I double click on a variable name in the observe pane, that opens a new window to observe that variable with run, stop, step buttons in the tool bar. (very nifty, indeed!)

If I stop and restart the script that window stays open. But if the script has to recompile that window closes after I hit run.

Didn’t that use to stay up through compiles? If not, is it possible to keep that window open through compiles?

–>Script Debugger 6.0.4 (6A198) on Mac OS 10.11.6 (15G1217)

If the variable is erased as a result of a compile, then the window goes away. The problem is that in AppleScript a variable does not exist until it is assigned a value. For globals, you can ensure a variable exists by declaring it as a property.

Edit: Properties work. Thanks!