Thank you for your compliment, I appreciate it.
@Everyone Else Thank you for your helpful suggestions. An update is in order.
I've realized that I needed to take a step back to inform myself about debugging facilities in AHK, something I'd never studied.
This has been extremely interesting, but some of the information is unclear to me. For anyone else also starting with this topic I'll summarize my findings so far and relevant links, and also hope that some of you may be able to advise as to what I'm missing in the tools (sections in bold italic
These are the three main things I've read about in the AHK debugging tools world:
- 1. "Main Window". When an AHK script is running (the dot-ahk version, not a dot-exe compiled version) you can right-click the script's icon in the tray and select 'Open', which brings up the "Main Window". This is supposed to give you access to variables, last executed lines and so forth — which apparently are also available via the ListVar facility some of you mentioned. This sounds great, but the problem is that when I tried to use this on a hanging script, the script immediately terminated.
2. Debugging within the Autohotkey Studio editor. This video demonstrates a very nice watch window within AHK studio. This looks fantastic, but in the menu (all the options are accessible via Alt + M) I haven't found a way to attach the debugger to a running script.
3. Debugging via the SciTE4AutoHotkey editor. This thread presents an updated version of the editor with more debugging features. Under Tools, there is an extremely promising feature to "debug a currently running script". When I try this, I am able to select my script, but sadly SciTE then hangs with this message: Waiting for SciTE to connect... Nothing more.
This is the status of my research into debugging facilities.
Would be hugely grateful for any insights and input from this point forward.