Visual Studio中的发布和调试模式之间有什么区别? [英] What is the difference between Release and Debug modes in Visual Studio?

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

问题描述

可能重复:
.NET中的调试与发布
调试/发布差异

Possible Duplicate:
Debug vs. release in .NET
Debug/Release difference

在构建项目时,Visual Studio中的发布和调试模式之间有什么区别?

What is the difference between Release and Debug modes in Visual Studio while building a project?

推荐答案

嗯,这取决于您使用的语言,但是通常它们是2个独立的配置,每个配置都有自己的设置.默认情况下,调试"将调试信息包含在已编译文件中(以便于调试),而发布"通常启用了优化功能.

Well, it depends on what language you are using, but in general they are 2 separate configurations, each with its own settings. By default, Debug includes debug information in the compiled files (allowing easy debugging) while Release usually has optimizations enabled.

就条件编译而言,它们各自定义了可以在程序中检查的不同符号,但是它们是特定于语言的宏.

As far as conditional compilation goes, they each define different symbols that can be checked in your program, but they are language-specific macros.

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

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