Visual Studio 调试与发布模式 [英] visual studio debug vs release mode

查看:39
本文介绍了Visual Studio 调试与发布模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio 2010,但我无法弄清楚一件事.我可以在发布模式和调试模式下调试和设置断点.那么两者有什么区别呢?

Hi I'm using Visual studio 2010 and I can't figure out one thing. I can debug and set breakpoints in release mode as well as debug mode. so then what's the difference between the two?

推荐答案

不同之处在于编译器在发布模式下应用的优化.如果您有 PDB 文件,则可以放置断点,并且默认情况下即使在发布模式下也会生成它们.

The difference is optimizations that the compiler applies in Release mode. You can place breakpoints if you have PDB files and by default they are generated even in Release mode.

这篇关于Visual Studio 调试与发布模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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