是否有可能将 *.pdb 文件包含到发布版本中以查看错误行号?

发布于 2024-10-02 08:41:19 字数 174 浏览 1 评论 0原文

我做了一个项目,所有设置都是默认的。

当我在调试模式(构建配置=调试)下运行它并遇到异常时 - 它转储到我的自定义日志记录机制,其中包含错误行号,但是当我运行发布构建时 - 记录相同的异常,没有行号,只有方法抛出和记录调用堆栈。

是否有可能在发布配置(*.pdb 文件或其他文件)中启用详细的调试信息?

I made a project, all the settings are default.

When i run it in Debug mode (Build config = Debug) and face with exception - it dumps to my custom logging mechanism whith error line number, but when i run Release build - the same exception is logged without line number, only method throwing and call stack are logged.

Is there any possibility to enable detailed debug info in Release config (*.pdb files or smth.)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三五鸿雁 2024-10-09 08:41:19

在“构建”选项卡上(以及在“发布”配置中),您可以单击“高级...”将“调试信息”更改为“完整”,但请注意,这可能会使某些编译器优化变得不可能。

On the Build tab (and when in the "Release" configuration), you can click Advanced... to change the Debug Info to "full", but note that this may make some compiler optimizations impossible.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文