Embed .pdb debug symbol information into an .exe file in Visual Studio

Anh Cuong picture Anh Cuong · Aug 26, 2010 · Viewed 7.3k times · Source

I am experimenting an analysis tool that can analyze executable files with embedded debug symbol information in Windows. While trying this tool on several open source projects, I realize that most of the builds do not keep symbolic information in executable files. I am able to compile the source code with VS (2008), but the build normally keeps the debug information in a separated .pdb file, not in the .exe file (unfortunately I only want to read debug information from .exe file and not .pdb file :-().

Does anybody know a way to embed symbol debug information into a single .exe file using Visual Studio?

Answer

Shay Rojansky picture Shay Rojansky · Feb 28, 2017

I know this is a pretty old issue but this feature has recently been merged into Roslyn: https://github.com/dotnet/roslyn/issues/12390