Jump to content

example with debugview


Recommended Posts

; view with debug view

; http://technet.microsoft.com/en-us/sysinte...s/bb896647.aspx

; credits go to 
; Karsten Violka (kav@ctmagazin.de), Stefan Porteck (spo@ctmagazin.de)
Func _DebugPrint($msg, $error = @error, $extended = @extended, $ScriptLineNumber = @ScriptLineNumber)
    ; view with debug view 
    ; http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
    Local $out = $msg & ", Line:" & $ScriptLineNumber & ", Error: " & $error & " " & $extended

    ;Output to application attaching a console to the script engine
    ConsoleWrite($out & @CRLF)

    ;Output to debugger (dbgview.exe)
    DllCall("kernel32.dll", "none", "OutputDebugString", "str", $out)
EndFunc   ;==>_DebugPrint
Link to comment
Share on other sites

  • 11 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...