strongnamer icon indicating copy to clipboard operation
strongnamer copied to clipboard

How can I debug an assembly that was assigned a strong name by StrongNamer?

Open samuel-knutson opened this issue 4 years ago • 1 comments

I am referencing a library in my project. I have a dll and pdb for the library, so I can debug the library fine without StrongNamer. But once I add a reference to StrongNamer (to sign the library), I can no longer debug the library. When I check the Debug Modules, it says "Binary was not built with debug information."

Is there any way to debug a referenced assembly while also referencing StrongNamer?

Note: I also posted this question to StackOverflow.

samuel-knutson avatar Apr 08 '21 13:04 samuel-knutson

Seems like StrongNamer should be able to rewrite the symbols too. This seems to be how the linker does it: https://github.com/dotnet/linker/blob/93de7209f008e297770e5b76ec43a84e7e88a131/src/linker/Linker.Steps/OutputStep.cs#L205-L223

ericstj avatar Nov 03 '22 15:11 ericstj