Show windbg debugging information
Windbg is a debugger, but it is also a software and has bugs, as if the doctor is also ill. How can I debug windbg? Designers of windbg have considered this early. For example, the. dbgdbg command is to start a debugger to debug the current debugger.
Another example is to use the. outmask command to allow windbg to output debugging information. Parameters can be a combination of the Flag spaces in the following table.
Value |
Default setting |
Description |
1 |
On |
Normal output |
2 |
On |
Error output |
4 |
On |
Warnings |
8 |
Off |
Additional output |
0x10 |
On |
Prompt output |
0x20 |
On |
Register dump before prompt |
0x40 |
On |
Warnings that are specific to extension operation |
0x80 |
On |
Debug output from the target (for example,OutputdebugstringOrDbuplint) |
Zero x 100 |
On |
Debug input expected by the target (for example,Dbgprompt) |
Zero X 200 |
On |
Symbol messages (for example,! Sym noisy) |
For simplicity, using 0xffffffff as the parameter means to open all debugging output. It is too troublesome to input 8 F, so use the/a switch:
0: 000>. outmask/
Client 007b5a60 mask is ffffffff
After executing the preceding command, restore the debugging target and you will see many internal processes of windbg's work.
0: 000> G
Check event IP 7c901230 for hard break
Insertbreakpoints PC 7c901231
Process 0 with 0 BPS
After insert UDB 0, DBC 0
> Executing
> Waiting, 0 elapsed,-1 timeout
> Continue with 10001
>>> Debug event 6 for 1150.1208
Modload: 76390000 763ad000 c: \ windows \ system32 \ imm32.dll
Modload: 76390000 763ad000 c: \ windows \ system32 \ imm32.dll
Output_process: *** load DLL ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
Hfile: 2c8 base: 10200000
Hfile: 2c4 base: 5f400000
Hfile: 2d4 base: 5f500000
Hfile: 2d8 base: 76390000
Hfile: 2cc base: 77f10000
Hfile: 2bc base: 7c800000
Hfile: 2b8 base: 7c900000
Hfile: 2d0 base: 7e410000
>>> Event status 9
> Waiting, 0 elapsed,-1 timeout
> Continue with 10002
>>> Debug event 6 for 1150.1208
Modload: 77dd0000 77e6b000 c: \ windows \ system32 \ advapi32.dll
Modload: 77dd0000 77e6b000 c: \ windows \ system32 \ advapi32.dll
Output_process: *** load DLL ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
Hfile: 2c8 base: 10200000
Hfile: 2c4 base: 5f400000
Hfile: 2d4 base: 5f500000
Hfile: 2d8 base: 76390000
Hfile: 2e4 base: 77dd0000
Hfile: 2cc base: 77f10000
Hfile: 2bc base: 7c800000
Hfile: 2b8 base: 7c900000
Hfile: 2d0 base: 7e410000
>>> Event status 9
> Waiting, 0 elapsed,-1 timeout
> Continue with 10002
>>> Debug event 6 for 1150.1208
Modload: 77e70000 77f01000 c: \ windows \ system32 \ rpcrt4.dll
Modload: 77e70000 77f01000 c: \ windows \ system32 \ rpcrt4.dll
Output_process: *** load DLL ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
Hfile: 2c8 base: 10200000
Hfile: 2c4 base: 5f400000
Hfile: 2d4 base: 5f500000
Hfile: 2d8 base: 76390000
Hfile: 2e4 base: 77dd0000
Hfile: 2e8 base: 77e70000
Hfile: 2cc base: 77f10000
Hfile: 2bc base: 7c800000
Hfile: 2b8 base: 7c900000
Hfile: 2d0 base: 7e410000
>>> Event status 9
> Waiting, 0 elapsed,-1 timeout
> Continue with 10002
>>> Debug event 6 for 1150.1208
Modload: 629c0000 629c9000 c: \ windows \ system32 \ LPK. dll
Modload: 629c0000 629c9000 c: \ windows \ system32 \ LPK. dll
Output_process: *** load DLL ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
Hfile: 2c8 base: 10200000
Hfile: 2c4 base: 5f400000
Hfile: 2d4 base: 5f500000
Hfile: 2ec base: 629c0000
Hfile: 2d8 base: 76390000
Hfile: 2e4 base: 77dd0000
Hfile: 2e8 base: 77e70000
Hfile: 2cc base: 77f10000
Hfile: 2bc base: 7c800000
Hfile: 2b8 base: 7c900000
Hfile: 2d0 base: 7e410000
>>> Event status 9
> Waiting, 0 elapsed,-1 timeout
> Continue with 10002
>>> Debug event 6 for 1150.1208
Modload: 74d90000 74dfb000 c: \ windows \ system32 \ usp10.dll
Modload: 74d90000 74dfb000 c: \ windows \ system32 \ usp10.dll
Output_process: *** load DLL ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
Hfile: 2c8 base: 10200000
Hfile: 2c4 base: 5f400000
Hfile: 2d4 base: 5f500000
Hfile: 2ec base: 629c0000
Hfile: 2f0 base: 74d90000
Hfile: 2d8 base: 76390000
Hfile: 2e4 base: 77dd0000
Hfile: 2e8 base: 77e70000
Hfile: 2cc base: 77f10000
Hfile: 2bc base: 7c800000
Hfile: 2b8 base: 7c900000
Hfile: 2d0 base: 7e410000
>>> Event status 9
> Waiting, 0 elapsed,-1 timeout
> Continue with 10002
>>> Debug event 6 for 1150.1208
Modload: 77c10000 77c68000 c: \ windows \ system32 \ msvcrt. dll
Modload: 77c10000 77c68000 c: \ windows \ system32 \ msvcrt. dll
Output_process: *** load DLL ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
Hfile: 2c8 base: 10200000
Hfile: 2c4 base: 5f400000
Hfile: 2d4 base: 5f500000
Hfile: 2ec base: 629c0000
Hfile: 2f0 base: 74d90000
Hfile: 2d8 base: 76390000
Hfile: 2f4 base: 77c10000
Hfile: 2e4 base: 77dd0000
Hfile: 2e8 base: 77e70000
Hfile: 2cc base: 77f10000
Hfile: 2bc base: 7c800000
Hfile: 2b8 base: 7c900000
Hfile: 2d0 base: 7e410000
>>> Event status 9
> Waiting, 0 elapsed,-1 timeout
> Continue with 10002
>>> Debug event 6 for 1150.1208
Modload: 5fd00000 5fd09000 c: \ windows \ system32 \ mfc42loc. dll
Modload: 5fd00000 5fd09000 c: \ windows \ system32 \ mfc42loc. dll
Output_process: *** load DLL ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
Hfile: 2c8 base: 10200000
Hfile: 2c4 base: 5f400000
Hfile: 2d4 base: 5f500000
Hfile: 2f8 base: 5fd00000
Hfile: 2ec base: 629c0000
Hfile: 2f0 base: 74d90000
Hfile: 2d8 base: 76390000
Hfile: 2f4 base: 77c10000
Hfile: 2e4 base: 77dd0000
Hfile: 2e8 base: 77e70000
Hfile: 2cc base: 77f10000
Hfile: 2bc base: 7c800000
Hfile: 2b8 base: 7c900000
Hfile: 2d0 base: 7e410000
>>> Event status 9
> Waiting, 0 elapsed,-1 timeout
> Continue with 10002
>>> Debug event 6 for 1150.1208
Modload: 5d090000 5d12a000 c: \ windows \ system32 \ comctl32.dll
Modload: 5d090000 5d12a000 c: \ windows \ system32 \ comctl32.dll
Output_process: *** load DLL ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
Hfile: 2c8 base: 10200000
Hfile: 2fc base: 5d090000
Hfile: 2c4 base: 5f400000
Hfile: 2d4 base: 5f500000
Hfile: 2f8 base: 5fd00000
Hfile: 2ec base: 629c0000
Hfile: 2f0 base: 74d90000
Hfile: 2d8 base: 76390000
Hfile: 2f4 base: 77c10000
Hfile: 2e4 base: 77dd0000
Hfile: 2e8 base: 77e70000
Hfile: 2cc base: 77f10000
Hfile: 2bc base: 7c800000
Hfile: 2b8 base: 7c900000
Hfile: 2d0 base: 7e410000
>>> Event status 9
> Waiting, 0 elapsed,-1 timeout
> Continue with 10002
>>> Debug event 6 for 1150.1208
Modload: 5ad70000 5ada8000 c: \ windows \ system32 \ uxtheme. dll
Modload: 5ad70000 5ada8000 c: \ windows \ system32 \ uxtheme. dll
Output_process: *** load DLL ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
Hfile: 2c8 base: 10200000
Hfile: 300 base: 5ad70000
Hfile: 2fc base: 5d090000
Hfile: 2c4 base: 5f400000
Hfile: 2d4 base: 5f500000
Hfile: 2f8 base: 5fd00000
Hfile: 2ec base: 629c0000
Hfile: 2f0 base: 74d90000
Hfile: 2d8 base: 76390000
Hfile: 2f4 base: 77c10000
Hfile: 2e4 base: 77dd0000
Hfile: 2e8 base: 77e70000
Hfile: 2cc base: 77f10000
Hfile: 2bc base: 7c800000
Hfile: 2b8 base: 7c900000
Hfile: 2d0 base: 7e410000
>>> Event status 9
> Waiting, 0 elapsed,-1 timeout
> Continue with 10002
>>> Debug event 6 for 1150.1208
Modload: 74720000 7476b000 c: \ windows \ system32 \ msctf. dll
Modload: 74720000 7476b000 c: \ windows \ system32 \ msctf. dll
Output_process: *** load DLL ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
Hfile: 2c8 base: 10200000
Hfile: 300 base: 5ad70000
Hfile: 2fc base: 5d090000
Hfile: 2c4 base: 5f400000
Hfile: 2d4 base: 5f500000
Hfile: 2f8 base: 5fd00000
Hfile: 2ec base: 629c0000
Hfile: 304 base: 74720000
Hfile: 2f0 base: 74d90000
Hfile: 2d8 base: 76390000
Hfile: 2f4 base: 77c10000
Hfile: 2e4 base: 77dd0000
Hfile: 2e8 base: 77e70000
Hfile: 2cc base: 77f10000
Hfile: 2bc base: 7c800000
Hfile: 2b8 base: 7c900000
Hfile: 2d0 base: 7e410000
>>> Event status 9
> Waiting, 0 elapsed,-1 timeout
> Continue with 10002
>>> Debug event 6 for 1150.1208
Modload: 37f00000 37f16000 c: \ Program Files \ Kingsoft \ xdict \ cjktl32.dll
Modload: 37f00000 37f16000 c: \ Program Files \ Kingsoft \ xdict \ cjktl32.dll
Output_process: *** load DLL ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
Hfile: 2c8 base: 10200000
Hfile: 308 base: 37f00000
Hfile: 300 base: 5ad70000
Hfile: 2fc base: 5d090000
Hfile: 2c4 base: 5f400000
Hfile: 2d4 base: 5f500000
Hfile: 2f8 base: 5fd00000
Hfile: 2ec base: 629c0000
Hfile: 304 base: 74720000
Hfile: 2f0 base: 74d90000
Hfile: 2d8 base: 76390000
Hfile: 2f4 base: 77c10000
Hfile: 2e4 base: 77dd0000
Hfile: 2e8 base: 77e70000
Hfile: 2cc base: 77f10000
Hfile: 2bc base: 7c800000
Hfile: 2b8 base: 7c900000
Hfile: 2d0 base: 7e410000
>>> Event status 9
> Waiting, 0 elapsed,-1 timeout
> Continue with 10002
>>> Debug event 6 for 1150.1208
Modload: 77c00000 77c08000 c: \ windows \ system32 \ version. dll
Modload: 77c00000 77c08000 c: \ windows \ system32 \ version. dll
Output_process: *** load DLL ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
Hfile: 2c8 base: 10200000
Hfile: 308 base: 37f00000
Hfile: 300 base: 5ad70000
Hfile: 2fc base: 5d090000
Hfile: 2c4 base: 5f400000
Hfile: 2d4 base: 5f500000
Hfile: 2f8 base: 5fd00000
Hfile: 2ec base: 629c0000
Hfile: 304 base: 74720000
Hfile: 2f0 base: 74d90000
Hfile: 2d8 base: 76390000
Hfile: 30C base: 77c00000
Hfile: 2f4 base: 77c10000
Hfile: 2e4 base: 77dd0000
Hfile: 2e8 base: 77e70000
Hfile: 2cc base: 77f10000
Hfile: 2bc base: 7c800000
Hfile: 2b8 base: 7c900000
Hfile: 2d0 base: 7e410000
>>> Event status 9
> Waiting, 0 elapsed,-1 timeout
> Continue with 10002
>>> Debug event 7 for 1150.1208
Initializecontext EIP 0
Live user clear trace mode
Removebreakpoints
Process 0 with 0 BPS
>>> Event status 9
Check event IP 7c90eb94 for hard break
Insertbreakpoints PC 7c90eb94
Process 0 with 0 BPS
After insert UDB 0, DBC 0
Output_process: *** exit cleanup ***
ID: 1150 handle: 2b4 index: 0
ID: 1208 hthread: 2b0 index: 0 ADDR: 00402540
Hfile: 2c0 base: 00400000
.......