Ok, here is another updated list:
AutoItSetOption("Debug",
flags)
FlagsAdd together numbers for each option0 - Turn off all debugging
Display options1 - Display debug output in on-screen window
2 - Save debug output to log file
If neither of the above options are used, each debug message appears in a msgbox.
Output extras4 - Display active script name (#include file will be shown if running code inside #include file)
8 - Display line number.
16 - Display structure depth
32 - Display function depth and current function name
64 - Output value of @Error after line executed.
When/What to output128 - Output script lines before they are executed
256 - Output user-defined function names as functions are called
512 - Output user-defined function argument values as functions are called.
1024 - Output variable values after assignment.
2048 - Output variable values as referenced.
4096 - Enable watch exp
ressions
Step-by-step execution32768 - Enable step-by-step debugging. Next statement will be paused waiting for key to move on. During Step-by-step HotKeys and Adlib are suspenced.
F4 - show stack dump/trace (seperate window)
F5 - run without stopping
F6 - run to cursor (requires display of source)
F8 - toggle window to display source as it is executed. Display is only updated during a pause. Does not stop other displays from happening.
F9 - toggle break-point on cursor line (requires display of source)
F10 - execute next statement
F11 - execute next statement, stepping into user-defined functions
F12 - complete current user-defined function. Stepping resumes at function call.
Notes:- To output to both debug window and debug log file, use 1 + 2 = 3
- To have function arguments appear with the function names, you will need 256 + 512 = 768, not just 512.
- To have all uses of variables displayed, use 512 + 1024 + 2048 = 3584.
Add a couple of functions that output to the debug stream. These are ignored by the non-debugging versions without error.
Assert(expression, [False text], [Abort(0/1)]) - test
expression. If true, do nothing. If false (numeric 0), output
False text or a default phrase if not given and abort execution if
Abort=1 (default). Format of default message: "Assert Failed:
expression"
DebugOut(expression) - Print the results of
expression using the current debug output method(s).
Non-debugging version totally ignores Opt("Debug", ...) values without error.
Ok, now what is needed?
Edited by Nutster, 25 February 2004 - 06:04 PM.