INTERNET APPLICATION DEVELOPMENT
MID MARKET ERP DEVELOPMENT
Sometimes we need to check some debug information, but do not want to create a log file. We can use a tool named “debugview.exe” to monitor the debug output.
The tool is developed by Sysinternals. And you can download it from the Microsoft website. For a .net developer, it is very simple to get a program’s output debug information. Try this:
Then you can run the tool to capture the debug information.
But for VB6, you need to add some code for Windows API declaration:
Public Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (ByVal lpOutputString As String)
And use the function like this:
OutputDebugString “Trace For VB6: Debug information"
If you cannot find your debug information from the tool, you need to check the configuration of the tool and make sure you already selected “Capture Win32”.
The tool has three options to capture the debug information:
1. Win32 OutputDebugString
2. Kernel-mode DbgPrint
3. All kernel-mode variants of DbgPrint implemented in Windows XP and Server 2003
The tool supports 32-bit and 64-bit.
I hope you find this useful. If you have any questions, please email me.