调试和发布配置

发布于 2024-09-27 19:40:22 字数 238 浏览 1 评论 0原文

众所周知,在 Visual Studio 中有两种预定义的配置 - 调试和发布。自从我开始编程以来,我就一直在使用它们,并且很快就了解了它们的差异。然而最近我必须创建自己的配置,现在我有一个问题:这两个配置是否仅由“项目选项”页面中的参数/选项定义/确定?或者微软编译器是否以特殊方式对待它们?

我的问题是 - 如果我创建一个新配置并复制调试或发布中的所有设置,我的新配置是否等于预定义的调试/发布或不完全?

希望我的问题很清楚。

As we all know, in Visual Studio there are two predefined configurations - Debug and Release. I have been using them since I started programming and soon learnt their differences. However recently I had to create my own configurations and now I have a question: Are those two configurations defined/determined solely by their parameters/options from "project options" page? Or does the microsoft compiler treat them in a special way?

My question is this - if I create a new configuration and copy all settings from Debug or Release, will my new configuration be equivalent to the predefined Debug/Release or not entirely?

Hope my question is clear.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

潇烟暮雨 2024-10-04 19:40:22

这两种配置
仅由他们定义/决定
来自“项目”的参数/选项
选项”页面?

是的。

如果我创建一个新配置并且
从调试复制所有设置或
发布,我的新配置会是
相当于预定义的
调试/发布?

是的,会的。

例如,调试配置定义_DEBUG,发布配置启用优化等。

Are those two configurations
defined/determined solely by their
parameters/options from "project
options" page?

Yes.

if I create a new configuration and
copy all settings from Debug or
Release, will my new configuration be
equivalent to the predefined
Debug/Release ?

Yes it will.

For instance, the debug configuration defines _DEBUG, the release configuration enables optimisations, etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文