且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Visual Studio 2013 编辑并继续不起作用

更新时间:2023-02-03 19:31:26

默认情况下对本机代码禁用编辑并继续".启用:

Edit and Continue is disabled for native code by default. To enable:

  1. 工具菜单上,点击选项.
  2. 选项对话框中,打开调试节点,然后选择编辑并继续类别.
  3. 仅限本机选项组中,选择启用本机编辑并继续
  1. On the Tools menu, click Options.
  2. In the Options dialog box, open the Debugging node, and select the Edit and Continue category.
  3. In the Native-only options group, select Enable native Edit and Continue

编辑:测试本机编辑并继续"的步骤是否有效:

Edit: Steps to test native Edit and Continue is working:

  1. 开始 VS 2013
  2. 创建一个新的 MFC 项目:
    • FILE->新建项目->MFC 应用程序->确定.
    • 在 MFC 应用程序向导中选择完成.
  1. Start VS 2013
  2. 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;
  • 调试->继续