有没有可能将* .pdb文件包含到Release版本中以查看错误行号? [英] Is there any possibility to include *.pdb file into Release build to see error line number?

查看:226
本文介绍了有没有可能将* .pdb文件包含到Release版本中以查看错误行号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I made a project, all the settings are default.

当我在Debug模式下运行它(Build config = Debug)并遇到异常时-它转储到带有错误行号的自定义日志记录机制中,但是当我运行Release build时-记录相同的异常而没有行号,仅方法抛出和调用堆栈被记录下来.

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.

是否有可能在Release config(*.pdb文件或smth)中启用详细的调试信息?

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

推荐答案

在构建"选项卡上(处于发布"配置时),可以单击高级..."将调试信息"更改为完整",但是请注意,这可能会使某些编译器优化无法实现.

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.

这篇关于有没有可能将* .pdb文件包含到Release版本中以查看错误行号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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