Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are PDB files useful when code has been obfuscated

Tags:

c#

debugging

My understanding is that by placing the associated PDB files next to compiled code, any exception and stack trace will report a filename and line number, which assists with debugging.

Are these files still useful if the code has been obfuscated? e.g. are the filenames and line numbers still correct?

like image 898
Kye Avatar asked Feb 07 '26 14:02

Kye


1 Answers

The pdb files generated before obfuscation will not correlate to the obfuscated assembly. Many obfuscators have an option to generate a PDB file as part of their output.

For example, Dotfuscator has a Emit Debugging Symbols option to create a pdb file. Obfuscator has a RegenerateDebugInfo option to recreate the pdb file.

like image 106
John Koerner Avatar answered Feb 09 '26 07:02

John Koerner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!