Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embed pdb into assembly

I want my application to be distributable as a single .exe file but I want to be able to get nice error reports with source code line numbers (the application simply sends email with exception.ToString() and some additional information when unhandled exception occurs).

Is there any way to embed .pdb into assembly?

like image 553
Konstantin Spirin Avatar asked Oct 05 '09 02:10

Konstantin Spirin


1 Answers

Use MiniDumps instead of "exception.ToString()". It will give you a lot more information and does not need the .pdb to be distributed with the .exe.

Useful Link: Post-Mortem Debugging Your Application with Minidumps and Visual Studio .NET

like image 171
Dietmar Hauser Avatar answered Sep 23 '22 18:09

Dietmar Hauser