发布与调试版本
如果我必须通过 WinDbg 执行调试,是否有优点或缺点,或者有发布版本还是调试版本?我只是想知道使用发布版本进行调试是否有任何限制
If I have to perform debugging via WinDbg, are there are pro or cons or having release vs debug builds? I am just wondering if there are any limitations of doing debugging with the release build
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,您需要调试信息(.pdb),您可以在两者中都有该信息。然后发布版本通常会被优化:
,这使得理解什么变得更加困难此刻正在发生。
因此,一般来说,发布版本会明显更快,但通常更难调试。除此之外,您不应该看到任何严重的差异。
First of all you need debug information (.pdb) which you can have in both. Then release builds are usually optimized:
and this makes it much harder to understand what's going on at the moment.
So in general release builds will be notable faster, but often harder to debug. Other than that you shouldn't see any serious difference.
浏览此网址,有一个与此相关的很好的讨论
单独的“调试”和“发布'版本?
Go through this URL, there is a nice discussion related to this
Separate 'debug' and 'release' builds?