Search the Community
Showing results for tags 'debuging'.
-
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
-
First I want to thanks to: @Mhz for this scirpt: ?do=embed' frameborder='0' data-embedContent>'?do=embed' frameborder='0' data-embedContent> title="">?do=embed' frameborder='0' data-embedContent> Secondly I want to thanks to: @trancexx for this scirpt: '?do=embed' frameborder='0' data-embedContent> title=""> HOW IT WORKS First you need build/compile script "Variable_list.au3" This "Variable_list.exe" must be in the same folder as your script. "DumpDebuging.au3" is a UDF file, must be in the same folder as your script, and you must include them into your script, like this: #include "DumpDebuging.au3" EDIT 2013/10/02: to your program you must add, this part : #AutoIt3Wrapper_Run_Before=Variable_list.exe %in% it uses the "Variable_list.exe" on a script that invoked it. EDIT 2013/10/02: "You must compile your program to use this AutoIt3Wrapper directive" "Variable_list.exe" It analyzes the calling script, finds global variables and creates a list: #region Global and Local "Variable List Declaration" Global $_sGlobalVariableList = "" $_sGlobalVariableList &= "$array|$binary|$bool|$false|$float|" $_sGlobalVariableList &= "$hex|$hwnd|$int|$keyword|$number|" $_sGlobalVariableList &= "$ptr|$string|$struct|$true" #endregion Global and Local "Variable List Declaration" In addition, for each Functions, add the following call: _Func_Start("Function Name") _Func_End("Function Name") Example of use presents "test_DumpDebuging.au3" EDIT 2013/10/02: to use this example you must compile them (required to use AutoIt3Wrapper directive) Compared with the previous version, which can be found here: ?do=embed' frameborder='0' data-embedContent>'?do=embed' frameborder='0' data-embedContent> title="">?do=embed' frameborder='0' data-embedContent> This script contains a number of changes, including changes in the naming of variables and functions. In addition, several new features were added, and remodeling general behavior. That is why I decided to create a separate thread in this part of the forum. EDIT 2013/10/01: attached files have been modified, just cleaned. EDIT 2013/10/03: attached files have been modified, removed bug and added UDF Header Description. EDIT 2013/10/07 20:59: Updated: "Variable_list.au3": Improved way of adding function calls: _Func_Start ("Function Name") _Func_End ("Function Name") DumpDebuging.au3 test_DumpDebuging.au3 Variable_list.au3
- 16 replies
-
- OnAutoitError
- Error
-
(and 2 more)
Tagged with: