VS2008“调试”菜单“应用代码更改”始终是灰色并禁用。 [英] VS2008 "Debug" menu "apply code change" is always gray and disabled.

查看:153
本文介绍了VS2008“调试”菜单“应用代码更改”始终是灰色并禁用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有VS2008的Sp1补丁。 Os Win7 32位。

Visual Studio Team System 2008团队套件

我已设置Debuging - >启用编辑并继续复选框。

我的项目已打开(/ INCREMENTAL)。

但是应用代码更改始终为灰色且已禁用。

我用Google搜索但可以找到决议。请帮助我!

I have Sp1 patch for VS2008. Os Win7 32bit.
Visual Studio Team System 2008 Team Suite
I have setted the "Debuging"->"Enable Edit and Continue" check box.
My project has "(/INCREMENTAL)" switch on.
But "apply code change" is always gray and disabled.
I have googled but can find a resolution. Help me please!

推荐答案

停止托管代码中的代码更改可能会产生意外结果。将更改应用于托管代码通常是一个快速的过程,因此很少需要停止托管代码中的代码更改。



此菜单项仅在代码更改时可见正在应用。如果选择此选项,则不会提交任何代码更改。
Stopping code changes in managed code can produce unexpected results. Applying changes to managed code is normally a quick process, so there is seldom a need to stop code changes in managed code.

This menu item is visible only when code changes are being applied. If you choose this option, none of the code changes are committed.


我发现了这一点,这完全是奇怪的。对我来说,事实证明,如果我的.cpp没有#include文件,那么应用代码更改在进行更改后总是会变灰。一旦我添加#include指令,即使对于空头文件,当我进行更改时它也会再次启用。更奇怪的是,标题必须用双引号括起来,而不是<>。
I found this, and it is totally bizarre. For me it turns out that if I have a .cpp with no #include files, "apply code changes" is always greyed after making changes. As soon as I add a #include directive, even for an empty header file, it is enabled again when I make a change. Even more bizarrely, the header has to be enclosed in double quotes, not <>.


这篇关于VS2008“调试”菜单“应用代码更改”始终是灰色并禁用。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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