Windows platform WinDBG debugger - tips and ideas

★ WinDBG official website:

https://docs.microsoft.com/zh-cn/windows-hardware/drivers/debugger/

http://windbg.info/doc/1-common-cmds.html

windbg is Microsoft's development of a debugger components. Because of its rich windbg commands and native support for windows as well as its ease of use, it is unmatched by other other debuggers.

★ Windbg features:

1. Support the application layer debugging (can source debugger)

2. Supports debugging kernel layer. Such as driving and operating system debugging

3. Support for remote debugging

4. Analyze the dump file

5. Check local operating system information

6. rich command (you can see with the other tools do not see the information)

insufficient:

1. The interface is not too friendly and

Compared with vc debugger: source code debugger of choice vc

Compared with ollydbg: No application source code level debugging preferred ollydbg

★ remote debugging of applications
ready:
1. Remote installation windbg

2. The local installation windbg

Remote machine using TCP link settings:
Set windbg start the command line: windbg.exe -server tcp: port = 123456 (123456 is the port number, which can be freely set)
and then through the command line to start, in addition to or need to start a debugging process
local machine settings:
settings windbg start the command line: windbg.exe -remote tcp: server = 172.168.1.3 , port = 123456 (172.168.1.3 remote machines IP, 123456 is the port number, and the remote machine must be consistent), then the command line to start
 

 

Companion " Qt Creator of CDB debugger - use skill and experience, the focus is set Symbols Path "

 

---

Recommended books

Zhang Yinkui, high-end debugging  http://advdbg.org/

Zhang Yinkui "software debugging"

Zhang Yinkui " software debugging (Second Edition) "

 

Published 456 original articles · won praise 535 · Views 3.25 million +

Guess you like

Origin blog.csdn.net/libaineu2004/article/details/104081676