Good tutorial for WinDbg? -


are there tutorials showing how use windbg?

basic tutorials & usage demos

different ways "start"/attach windbg

workspaces (understanding how work)

cmdtree

allows define "menu" of debugger commands easy access used commands without having remember terse command names. don't have put command definitions same cmdtree text file....you can keep them separate , load multiple ones (they own window).

startup script

you can use -c option on command line automatically run windbg script when start windbg.

gives opportunity turn on dml (debugger markup language) mode, load particular extensions, set .net exception breakpoints, set kernel flags (e.g. when kernel debugging might need change dbgprint mask see tracing information....ed nt!kd_default_mask 0xffffffff), load cmdtrees, etc.

an example script:

$$ include directory search extensions $$ (point source controlled or unc common directory developers access) .extpath+"c:\svn\devtools\windbg\extensions" $$ when debugging driver written windows driver framework/kmdf $$ load extension comes winddk. !load c:\winddk\7600.16385.1\bin\x86\wdfkd.dll !wdftmffile c:\winddk\7600.16385.1\tools\tracing\i386\wdf01009.tmf $$ load extensions .load msec.dll .load byakugan.dll .load odbgext.dll .load sosex .load psscor4 $$ make commands support dml (debugger markup language) use .prefer_dml 1 .dml_start $$ show ntstatus codes in hex default .enable_long_status 1 $$ set default extension .setdll psscor4 $$ show loaded extensions .chain /d $$ load command trees .cmdtree c:\svn\devtools\windbg\cmdtree\cmdtree1.txt .cmdtree c:\svn\devtools\windbg\cmdtree\cmdtree2.txt $$ show extensions !wdfkd.help !psscor4.help .help /d 

command cheat sheets

extensions (extend range of commands/features supported)

write own extension

debugging managed code

scripting (c#, ps, python, , windbg)

debuggers/tools use dbgeng.dll api/windbg tools

different ways generate crash dump files post-mortem analysis

dump analysis tools

dump related tools

kernel debugging virtual machines

  • vmkd - virtual machine kd extensions
  • virtualkd - (kernel debugger support os's hosted in vmware/virtualbox)

videos

blogs

advanced articles & tutorial resources

alternative debuggers

other links


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -