gpt4 book ai didi

.net - 将 pdb 嵌入到程序集中

转载 作者:行者123 更新时间:2023-12-03 23:43:29 24 4
gpt4 key购买 nike

我希望我的应用程序可作为单个 .exe 文件分发,但我希望能够获得带有源代码行号的良好错误报告(应用程序仅发送带有 exception.ToString() 的电子邮件以及发生未处理异常时的一些附加信息)。

有没有办法将 .pdb 嵌入到程序集中?

最佳答案

使用 MiniDumps 而不是“exception.ToString()”。它将为您提供更多信息,并且不需要将 .pdb 与 .exe 一起分发。

有用链接:Post-Mortem Debugging Your Application with Minidumps and Visual Studio .NET

关于.net - 将 pdb 嵌入到程序集中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1518073/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com