This article is a mirror article of machine translation, please click here to jump to the original article.

View: 36031|Reply: 2

[Source] A must-have DebugView debugging tutorial for developers

[Copy link]
Posted on 9/17/2021 9:29:17 PM | | | |
As a developer, debugging applications and troubleshooting issues is a must-master skill. DebugView is an application that allows you to monitor debug output on your local system or on any computer on a network that is accessible via TCP/IP. The article is attached to the source code for these messages in C#.

Download address for DebugView v4.90:

The hyperlink login is visible.

The hyperlink login is visible.


Installation and use

Simply execute the DebugView program file (dbgview.exe) and DebugView will immediately start capturing the debug output. Note that if you are running DebugView on Windows 2000/XP, you must have administrative privileges to view the kernel-mode debug output. Menus, hotkeys, or toolbar buttons can be used to clear windows, save monitored data to files, search for output, change window fonts, and more. The online help describes all the features of DebugView.

DebugView function


  • You can view the debug information output by the application.
  • You can view the debug information output by the driver.
  • You can view the debugging information of the local machine.
  • You can view the commissioning information of the remote machine.
  • It can be highlighted according to the rules.
  • Can be filtered based on keywords.
  • Can be searched based on keywords.
  • The latest record can be displayed automatically
  • ...



Output debugging information

Both applications and drivers can generate debugging information through the corresponding APIs.

1. Unmanaged applications can output debugging information through Win32 API OutputDebugString().

2. The managed application can output debug information through System.Diagnostics.Debug.Print(), and OutputDebugString() is called internally.

3. The driver can output debug information via DbgPrint() or DbgPrintEx() (or using KdPrint or KdPrintEx macros). These two macros are mapped to DbgPrint() or DbgPrintEx() respectively in the Debug version, and empty in the Release version.

C# outputs debugging information

Let's open the DebugView tool first, and the test code is as follows:


The output information is as shown in the figure below:



Of course, DebugView can also debug remote machine debug information.

c# to get the OutputDebugString debug information

Please refer to the principleThe hyperlink login is visible.


(End)




Previous:.NET Core determines the running system environment and sets environment variables
Next:C# NPOI CellType type
Posted on 9/17/2021 9:31:04 PM |
Take a look at learning
Posted on 9/18/2021 11:32:16 PM |
See how about something new
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com