Debug tool debugview for Windows (dbgview.exe)

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.