Debugging DLL's and Beta tester program debugging example!
Posted: Thu Mar 03, 2005 2:35 pm
Use this code and then simply provide a copy of, or give your testers the url to a DebugView tool.
A free debug viewer can be found at http://technet.microsoft.com/en-us/sysi ... 96647.aspx
For more info on OutputDebugString see http://msdn2.microsoft.com/en-us/library/aa363362.aspx
A free debug viewer can be found at http://technet.microsoft.com/en-us/sysi ... 96647.aspx
Code: Select all
;This is an example of using the Windows system debugger
;A free debug viewer can be found at
;http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
;The following debugging is of most use when debugging DLL's,
;or when your beta testers are helping you to debug your programs.
;Big thanks to NoahPhense for mentioning the API function and
;and mentioning where to find Sysinternals debugview program.
;Edit: Updated url, macros instead of procedure, toggles native/api debug string output.
#ApiDebug=#True ;#False to turn off API debugging, #True to activate API debugging
#ApiDebugName$="PB Test"
CompilerIf #ApiDebug=#True
Macro DebugString(debug_text)
OutputDebugString_(#ApiDebugName$+": "+debug_text)
EndMacro
CompilerElse
Macro DebugString(debug_text)
Debug debug_text
EndMacro
CompilerEndIf
;Use the below line wherever you wish to output debug hints/tests in your code.
DebugString("Just Testing!")