嵌入PDB成汇编 [英] Embed pdb into assembly

查看:101
本文介绍了嵌入PDB成汇编的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的应用程序能够分发作为的单个.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中

这篇关于嵌入PDB成汇编的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆