A very good documents: Common WinDbg Commands (Thematically Grouped)
symbols related.
.sympath srv*https://msdl.microsoft.com/download/symbolsAdd msdl path to symbol path.!sym noisywe can get extra symbol info in Windbg..reload /f ntdll.dllreload the symbol file for given file.
breakpoint
|
|
conditional breakpoint
|
|
notice the space before .
variables
dx requestMachine->m_child.m_machine.m_impl.m_machine
dx child[3]->m_child.m_machine.m_impl.m_machine
dv:显示局部变量
Stack
kb- stack trace (current thread)kp- this will not show the information of Args to childkP-Args to child are shown in the symbol model).frame #- change the current frame #
Threads
~- List all threads~ kb- List all threads and their stack~# s- set the current thread to # (the thread number)
show C++ results
we have the C++ expression parser - @@c++() - that supports all forms of C++ expression syntax, such as:
- Numbers in C++ expressions
- Characters and strings in C++ expressions
- Symbols in C++ expressions. (see WinDbg documentation for details)
- Operators in C++ expressions
- Registers and pseudo-registers in C++ expressions
- Macros in C++ expressions
|
|