ShrutiW Posted March 11, 2019 Share Posted March 11, 2019 Hi, Can anyone please tell me how to debug script in AutoIt? Link to comment Share on other sites More sharing options...
Skeletor Posted March 11, 2019 Share Posted March 11, 2019 #AutoIt3Wrapper_Run_Debug_Mode=Y ShrutiW and Earthshine 2 Kind RegardsSkeletor "Coffee: my defense against going postal." Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI Link to comment Share on other sites More sharing options...
Skeletor Posted March 11, 2019 Share Posted March 11, 2019 Or another way is, in SciTE, Go to Tools... Kind RegardsSkeletor "Coffee: my defense against going postal." Microsoft Office Splash Screen | Basic Notepad Program (Beginner) | Transparent Splash Screen | Full Screen UI Link to comment Share on other sites More sharing options...
Developers Jos Posted March 11, 2019 Developers Share Posted March 11, 2019 3 hours ago, Skeletor said: Or another way is, in SciTE, Go to Tools... Those are "only" available in the Full SciTE4AutoIt3 version! Jos Skeletor and ShrutiW 2 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
user4157124 Posted March 11, 2019 Share Posted March 11, 2019 Some possibilities: https://stackoverflow.com/a/50539184/4157124 AUERLO (AutoIt error logger) Link to comment Share on other sites More sharing options...
jchd Posted March 11, 2019 Share Posted March 11, 2019 16 hours ago, ShrutiW said: Can anyone please tell me how to debug script in AutoIt? Keep away from coding bugs? (Just saying) This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
TheDcoder Posted March 12, 2019 Share Posted March 12, 2019 @ShrutiW If you are looking for a debugger tool for your script, then there is no official tool available. The way most people debug their script is to try to find the affected area and pin point the bug by manually adding in code to assist in diagnostics (ConsoleWrite to print the value of some variables to verify that they indeed have the expected value). That being said, there are some debugging tools available but they are a bit old and dated (haven't seen any which have been updated in the recent years), they basically work by cloning your script and adding some custom code to emulate breakpoints and update the value of variables. Natively the AutoIt interperter does not have any support for debugging as far as I am aware. ShrutiW 1 EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
TheSaint Posted March 12, 2019 Share Posted March 12, 2019 (edited) As said, a judiciously placed ConsoleWrite, if debugging via the Console (i.e. in SciTE) or by using MsgBox's in a similar manner when debugging normally without the Console/SciTE. Sometimes you can can even get away with using one or more Splash, with timed delay (Sleep). Another great method, is to have values written to a Log or INI text file etc at similar points. Edited March 12, 2019 by TheSaint Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
TheDcoder Posted March 12, 2019 Share Posted March 12, 2019 There is also a very useful (at times) Debug UDF which is included in the standard AutoIt installation EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion Link to comment Share on other sites More sharing options...
Mbee Posted November 13, 2020 Share Posted November 13, 2020 (edited) I'm very puzzled by the lack of mention of the greatest AutoIt debug tools! Why nothing about the great graphical debugger? (download at: http://www.thefoolonthehill.net/drupal/AutoIt Debugger) Or the _Dbug udf? (See: It's true that they're not "official", but so what and who cares? If I were forced to debug without one or the other of those two, I'd find another language. The other techniques mentioned here are, in only my own personal opinion, too painful to use. Edited November 13, 2020 by Mbee Link to comment Share on other sites More sharing options...
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