Document directory
- Function implementation output to dbgview in Windows:
Introduction
Debugview
Is an application that lets you monitor debug output on your local system, or any computer on the network that you can reach via TCP/IP. it is capable of displaying both kernel-mode and Win32 debug output, so you don't need a debugger to catch the debug output your applications or device drivers generate, nor do you need to modify your applications or drivers to use non-standard debug output APIs.
Debugview capture
Under Windows 2000, XP, Server 2003 and VistaDebugview
Will capture:
- Win32Outputdebugstring
- Kernel-modeDbuplint
- All kernel-mode variantsDbuplint
Implemented in Windows XP and Server 2003
Debugview
Also extracts kernel-mode debug output generated before a crash from window's 2000/XP crash dump files ifDebugview
Was capturing at the time of the crash.
Installation and Use
Simply executeDebugview
Program file (dbgview.exe) andDebugview
Will immediately start capturing debug output. Note that if you runDebugview
On Windows 2000/XP you must have administrative privilege to view kernel-mode debug output. menus, hot-keys, or toolbar buttons can be used to clear the window, save the monitored data to a file, search output, change the Window Font, and more. the on-line help describes allDebugview
'S features.
Function implementation output to dbgview in Windows:
During windows development, you often need to output the runtime information of your program to a debugging window so that the system can monitor the actual running status of the program at any time, the following function can output data during the running hours to dbgview (dbgview is developed by sysinternals and has been acquired by Microsoft), and call a tool to directly view the output value;
Void debug_print (in tchar * format ,...)
{
Va_list Arglist;
Tchar szformat [256], szcontent [1024]; // maximum buffer is 1 K bytes
_ Stprintf (szformat, text ("% s"), format );
Va_start (Arglist, format );
_ Vsnwprintf (szcontent, 1024, szformat, Arglist );
Va_end (Arglist );
Lstrcat (szcontent, l "/N ");
Outputdebugstring (szcontent );
}
Http://download.sysinternals.com/Files/DebugView.zip