ILSpy
ILSpy copied to clipboard
Report warning when PDB in DLL directory does not match
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:
And here is the decompiled code in mode "IL with C#", with no line numbers: