Search code examples
.netwindbgcrash-dumpsprocdump

How to export a list of the loaded libraries from windows dump file (procdump)


I'm looking at a *.dmp file in Visual Studio 2019 - it shows a list of the load system DLLs, filename, version, folder etc.

I want to copy this information to paste into Excel, but I can't copy it from Visual Studio.

Anyone know if I can export this to a text file from the dump file?


Solution

  • WinDbg has been covered in another answer already, so I'll refer to Visual Studio below.

    First step is to load the DMP file into VS.

    enter image description here

    This initial screen also displays a list of loaded modules, but that one does not allow copying from. Instead, click Debug with Native Only on the right hand side (or one of the other options available when debugging managed or mixed mode apps), and wait for the symbols to load.

    Then use the menu to open the Debug / Windows / Modules window.

    enter image description here

    This is a regular list, where you can select lines (including all lines) and Ctrl-C copy them as text.

    Alternatively, open the View / Other Windows / Command Window from the menu, and enter the debug.listModules command.

    enter image description here

    This one is a regular text box where, again, you can select and Ctrl-C copy as needed.