MP1454 Posted 17 hours ago Posted 17 hours ago Hello gurus, I've been trying to figure out how to debug autoit scripts in the SciTE editor and not having much luck finding any workable information. I have the full version SciTE4AutoIt3 21.203.1500.3 and AutoIt v3.3.16.1 installed in Windows 10. I'm not finding anything mentioned about debugging in AutoIt Help. I've run web searches for "debug autoit3 scripts with SciTE" but have only found bits and pieces of things that don't work and don't have a complete picture of what is needed for code debugging. Is there a tutorial or something giving instructions on what is needed to enable the debugger, set breakpoints, walk through my code, display runtime values, etc.? I would really appreciate pointers to how to debug au3 scripts, as I keep running into trouble spots in my code and would rather not just depend on ConsoleWrites to get the information I need. Any pointers or hints would be greatly appreciated. MarkP
ioa747 Posted 17 hours ago Posted 17 hours ago (edited) you must have it installed: SciTE4AutoIt3 you put at the top of the script #AutoIt3Wrapper_Run_Debug_Mode=Y Edited 17 hours ago by ioa747 I know that I know nothing
MP1454 Posted 17 hours ago Author Posted 17 hours ago Thanks ioa747. I have added that directive, but then what? I tried F9 when on a line in the code, but nothing happens. Isn't it supposed to put a red dot on the left? It's too bad there isn't a comprehensive tutorial on debugging AutoIt scripts. Maybe I could write one if I ever get this figured out.
ioa747 Posted 17 hours ago Posted 17 hours ago (edited) F5 to run result in conole Edit: added this directive on top #AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7 and press ctrl F5 for extended check syntax first Edited 17 hours ago by ioa747 I know that I know nothing
MP1454 Posted 17 hours ago Author Posted 17 hours ago I compile and Go with F5 and get console and FileWrite output, but how do I set breakpoints and/or step through my code? I need to debug if some If branch tests are successful and in particulare why my StringReplace lines are not working.
MP1454 Posted 16 hours ago Author Posted 16 hours ago 6 minutes ago, MP1454 said: I compile and Go with F5 and get console and FileWrite output, but how do I set breakpoints and/or step through my code? I need to debug if some If branch tests are successful and in particulare why my StringReplace lines are not working. Looks like I did get debugging output showing each line executed. But I still would like to know how to set breakpoints and have the debugger stop and then press a function key to step through my code.
ioa747 Posted 16 hours ago Posted 16 hours ago (edited) I've seen a graphical debugger somewhere, I'll find it in a moment. Edit: I changed the link and found a newer version. Edited 4 hours ago by ioa747 changed the link I know that I know nothing
argumentum Posted 7 hours ago Posted 7 hours ago 9 hours ago, MP1454 said: I would really appreciate pointers to how to debug au3 scripts, as I keep running into trouble spots in my code and would rather not just depend on ConsoleWrites to get the information I need. In my signature you can find stuff to aid debug. Bugs are coder created and de-bugging is more of a creative process than bugs in AutoIt. How or where would you like the info at ?. How do you envision the debug info ? Am not a programmer so, am curious. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now