| View previous topic :: View next topic |
| Author |
Message |
Musa
Joined: 31 Aug 2006 Posts: 9
|
Posted: Sun Sep 03, 2006 1:32 am Post subject: wants debugging tools!! "watch window" "break |
|
|
Hi,
Is there any standard AHK tool to debug the code. I am looking something that has ability to add “break point”, “watch window” to see what’s going on while program is running…. To see every steps inside the loop…. You know, I am new at AHK and try to learn something but without these tools it’s hard to understand the execution steps and what variable has what value and what kind of value….
If you have any idea, will you please let me know where I can find those handy dandy tools?
Thank you for your time.
Musa.Biralo |
|
| Back to top |
|
 |
Rabiator
Joined: 17 Apr 2005 Posts: 265 Location: Sauerland
|
Posted: Sun Sep 03, 2006 8:45 am Post subject: |
|
|
You can use the commands ListVars and Pause in your script. It's accurately described in the manual among some other helpful commands; search for "Debugging a Script".
Additionally you can watch the last proceeded lines with a click on Open in the context menu of your script's icon in the systray. |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5880
|
Posted: Sun Sep 03, 2006 9:12 am Post subject: |
|
|
| Rabiator wrote: | | Additionally you can watch the last proceeded lines with a click on Open in the context menu of your script's icon in the systray. |
Yes! ..and "double-clicking" the TrayIcon of any script will do the above good! .. Just wanted to mention it as it is easier to remember!
Regards,  _________________ SKAN - Suresh Kumar A N |
|
| Back to top |
|
 |
Musa
Joined: 31 Aug 2006 Posts: 9
|
Posted: Sun Sep 03, 2006 6:05 pm Post subject: |
|
|
Thank you dear friends.....
Now i got what i want.....i have to explore it little bit then "rock and roll" \ /
Once again THANK YOU. |
|
| Back to top |
|
 |
Mistrel
Joined: 12 Sep 2005 Posts: 188
|
Posted: Sun Sep 03, 2006 6:25 pm Post subject: |
|
|
Rock and roll!  |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon Sep 04, 2006 10:39 am Post subject: |
|
|
We often use MsgBox or ToolTip to look at specific values, or OutputDebug command (need a third party viewer) or even FileAppend...
Note that Chris (AutoHotkey's programmer) plans to add debugging facilities (as you described) to the language, but they aren't here yet... _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
|