调试器忽略已编辑的文件
Debugger ignores the edited file
为什么 'Edit & Continue' 功能在 VS2015 中不起作用?
调试器将忽略编辑,继续执行时您将看到一条错误消息,我得到以下
“The source file has changed. It no longer matches the version of the
file used to build the application being debugged.”
您必须将调试信息格式设置为“Program Database for Edit and Continue (/ZI)”。如果此选项设置不正确,调试器将忽略编辑,就像修改文件时禁用编辑和继续一样。
如果您在未使用此选项编译的二进制文件中进行编辑,调试器将忽略该编辑,继续执行时您将看到一条错误消息“源文件已更改。它不再匹配用于构建正在调试的应用程序的文件版本。”
Open the Property Pages of the project.
Under Configuration Properties -> C/C++ -> set the Debug Information
Format to “Program Database for Edit and Continue (/ZI)”
Edit & Continue 仅在 VS2015 中引入,因此此选项在早期版本中不可用。
为什么 'Edit & Continue' 功能在 VS2015 中不起作用? 调试器将忽略编辑,继续执行时您将看到一条错误消息,我得到以下
“The source file has changed. It no longer matches the version of the file used to build the application being debugged.”
您必须将调试信息格式设置为“Program Database for Edit and Continue (/ZI)”。如果此选项设置不正确,调试器将忽略编辑,就像修改文件时禁用编辑和继续一样。
如果您在未使用此选项编译的二进制文件中进行编辑,调试器将忽略该编辑,继续执行时您将看到一条错误消息“源文件已更改。它不再匹配用于构建正在调试的应用程序的文件版本。”
Open the Property Pages of the project.
Under Configuration Properties -> C/C++ -> set the Debug Information Format to “Program Database for Edit and Continue (/ZI)”
Edit & Continue 仅在 VS2015 中引入,因此此选项在早期版本中不可用。