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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With