嵌入PDB成汇编PDB

由网友(為我著迷)分享简介:我希望我的应用程序能够分发作为的单个.exe文件的,但我希望能够得到与源$ C ​​$ C线数好的错误报告(应用程序只需发送电子邮件与 exception.ToString()键,当出现未处理的异常一些额外的信息)。I want my application to be distributable as a sing...

我希望我的应用程序能够分发作为的单个.exe文件的,但我希望能够得到与源$ C ​​$ C线数好的错误报告(应用程序只需发送电子邮件与 exception.ToString()键,当出现未处理的异常一些额外的信息)。

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).

有什么办法嵌入.PDB成汇编?

Is there any way to embed .pdb into assembly?

推荐答案

使用小型转储,而不是exception.ToString()。它会给你更多的信息,并不需要以.pdb要与.exe文件分发。

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.

有用的链接:事后调试您与小型转储和视觉应用Studio .NET中

阅读全文

相关推荐

最新文章