ILSpy icon indicating copy to clipboard operation
ILSpy copied to clipboard

Report warning when PDB in DLL directory does not match

Open WolfgangHG opened this issue 10 months ago • 0 comments

I struggled with a issue where line numbers in stack traces were not shown though the PDB file was next to the DLL. In the end, it was an issue with files from two different builds - the PDB did not match the PdbChecksum in the DLL (and ILSpy finally helped me to understand this).

My suggestion: when opening the DLL with ILSpy in mode "IL with C#" and option "Show info from debug symbols, if available", it would be very helpful if ILSpy would have displayed a warning "could not load debug symbols from file xyz.pdb, because checksum did not match". Is this possible?

To clarify my suggestion, two screenshots:

This is the PdbChecksum: pdbchecksum

And here is the decompiled code in mode "IL with C#", with no line numbers: no_line_numbers

WolfgangHG avatar Aug 08 '23 14:08 WolfgangHG