Jump to content
Sign in to follow this  
nobbe

example with debugview

Recommended Posts

nobbe

; 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

Share this post


Link to post
Share on other sites
87yj

Very Useful!

Thanks!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×