默认情况下对本机代码禁用编辑并继续".启用:
Edit and Continue is disabled for native code by default. To enable:
- 在工具菜单上,点击选项.
- 在选项对话框中,打开调试节点,然后选择编辑并继续类别.
- 在仅限本机选项组中,选择启用本机编辑并继续
- On the Tools menu, click Options.
- In the Options dialog box, open the Debugging node, and select the Edit and Continue category.
- In the Native-only options group, select Enable native Edit and Continue
编辑:测试本机编辑并继续"的步骤是否有效:
Edit:
Steps to test native Edit and Continue is working:
- 开始 VS 2013
- 创建一个新的 MFC 项目:
-
FILE->新建项目->MFC 应用程序->确定.
- 在 MFC 应用程序向导中选择完成.
- Start VS 2013
- Create a new MFC project:
-
FILE->New Project->MFC Application->OK.
- Select Finish on the MFC Application Wizard.
- 打开 OutputWnd.cpp 并找到 COutputWnd::OnSize(第 80 行)
- 在函数的开头插入这一行:
cx = cx/2;