在版本如何构建一个项目在调试有出入? [英] How does building a project in Debug differ with in Release?

查看:287
本文介绍了在版本如何构建一个项目在调试有出入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio或任何其他IDE,通常有两种生成配置,调试和发布?
怎样的不同?为什么有时候你必须建立在调试模式下编译错误,而不是当在Release模式,反之亦然?

In visual studio or any other IDE, usually there are two build configurations, Debug and Release? How does the differ? Why sometimes you have compile errors when building in Debug mode, but not when in Release mode, and vice versa?

推荐答案

编译调试符号和允许你看到您的code运行时。它也确实变量初始化一些在bug跟踪过程中提供帮助。

Debug compiles with symbols and allows you to "see" your code when it runs. It also does some initialization of variables to help in the bug tracking process.

推出一般优化,并且不产生调试数据

Release is generally optimized, and does not generate debug data.

通常,当你编译两者之间切换的问题,它涉及到硬codeD路径文件夹。

Generally when you get compile issues toggling between the two, it relates to hard coded paths to folders.

MSDN上的配置

这篇关于在版本如何构建一个项目在调试有出入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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