Need Help Debugging - I Want to Save All of the Lines Run by my Script, as well as Contents of "ListVar"

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
sjdheunaskdf9384348
Posts: 14
Joined: 29 Dec 2015, 16:52

Need Help Debugging - I Want to Save All of the Lines Run by my Script, as well as Contents of "ListVar"

12 Feb 2016, 23:12

Hello everyone! So I've been working on a script lately that is working like 99.9% of the time. However, there is a very rare bug that I can't seem to pinpoint the cause (I'm assuming its because it happens while I am sleeping).

I have been searching here on the forums as well as Google, and can't seem to find what I am looking for in terms of debugging.

All I want is to save the lines run in my script (all of them from the very start) and have it update the save every X seconds and with timestamps. I also want the same thing, but for the contents of "ListVar." I can't seem to find something like this anywhere. The functionality is right in Autohotkey, just on a limited basis (the "Lines Most Recently Executed" and "Variables and their Contents" menus).

Is there a program or script to do this? Like I said, I just want to save all of the lines, variables, and their contents, while the script is running.


Hopefully there is something available, thank you!


---Edit--- The closest things I've found are

https://autohotkey.com/board/topic/2092 ... /?p=156570
https://autohotkey.com/boards/viewtopic.php?t=12795
lexikos
Posts: 9690
Joined: 30 Sep 2013, 04:07
Contact:

Re: Need Help Debugging - I Want to Save All of the Lines Run by my Script, as well as Contents of "ListVar"

13 Feb 2016, 02:32

AutoHotkey 1.1 supports DBGp. You could write an external script which controls your script via DBGp and logs each line that is executed. There is a script library (below) which does some of the work for you, though you still need to know about DBGp and parsing XML. The examples dbgp_listvars.ahk and dbgp_test.ahk probably include all the basic building blocks for what you want to do.
https://github.com/Lexikos/dbgp

However, it might slow down the script a bit.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 247 guests