cecil icon indicating copy to clipboard operation
cecil copied to clipboard

Embedded PDBs not readable by VisualStudio

Open tom-englert opened this issue 3 years ago • 3 comments
trafficstars

With the latest changes 79b43e8 in PortablePdb.cs assemblies modified with cecil can no longer be debugged in VisualStudio when embedded pdbs are used.

See https://github.com/Fody/Fody/issues/1110 for details how to reproduce.

tom-englert avatar Jun 14 '22 12:06 tom-englert

Here's a minimal repro which uses Fody, if it helps: TestProject.zip

ltrzesniewski avatar Jun 14 '22 12:06 ltrzesniewski

:(

Thanks for the heads-up!

jbevain avatar Jun 15 '22 03:06 jbevain

I've created some test project without Fody, so this can be instantly checked within the cecil solution: https://github.com/tom-englert/cecil/tree/%23856 image

devenv_5EXsg5IJEt Just put a breakpoint on the unit test in the Testtee project and try to debug the test => Breakpoint never hits!

I've also reverted the changes to the PdbWriter to verify that this is the root cause: https://github.com/tom-englert/cecil/tree/%23856_Fix

tom-englert avatar Jun 15 '22 09:06 tom-englert