GreenFuze Posted January 14, 2009 Posted January 14, 2009 Hey everybody! Is there a way to call a function that write the debug stream (prints to the DebugView). Just like OutputDebugString(c++) or Trace.WriteLine(c#) functions. If not, so any other functions that prints without a MsgBox() Thanks!!!
azure Posted January 14, 2009 Posted January 14, 2009 You didn't check the FAQ that's stickied on this thread! #253174 Quote A2. You can also debug a script on any computer by adding the following code to your script: AutoItFunc dbg($msg) DllCall("kernel32.dll", "none", "OutputDebugString", "str", $msg) EndFunc Then, when you need to add a debug line, call it as necessary. Example: AutoItdbg("The value of Variable 1 at this time is " & $var1) This debugging is completely transparent to the user, and is only viewable with a program such as DebugView from SysInternals. This method of debugging has the added advantage of being available to the developer in situations where is not acceptable or feasable to install SciTE on a client's unit.
GreenFuze Posted January 14, 2009 Author Posted January 14, 2009 Hey, you're right :-) Sorry and THANKS!!!!
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