在Visual Studio 2013中使用v60平台工具集时,调试信息不匹配 [英] Debugging information does not match, when using v60 platform toolset inside Visual Studio 2013
问题描述
我正在使用Visual Studio 2013,但是我需要使用Visual C ++ 6.0编译器开发一个旧项目.
I am using Visual Studio 2013, but I'm in need to develop an old project using the Visual C++ 6.0 compiler.
为此,我一直在Windows 8.1上使用 Daffodil 没问题. (您可以在此StackOverflow问题中了解更多如何在较新的Visual Studio版本中使用VC ++ 6编译器:
For this purpose, I have been using Daffodil with no problem on Windows 8.1 for a while. (You can read more how to use the VC++ 6 compiler in newer Visual Studio versions in this StackOverflow question: Is it possible to use the VC++ 6 compiler in Visual Studio 2012?)
现在我有了一台新的Windows 10计算机,在其中重新安装了Visual Studio 6、2010、2013和Daffodil.
Now I got a new Windows 10 machine, where I reinstalled Visual Studio 6, 2010, 2013 and Daffodil.
使用v60生成工具(Visual C ++ 6.0编译器),可以很好地编译项目.
Using v60 build tools (Visual C++ 6.0 compiler), project gets compiled fine.
但是,当我尝试调试时,VS表示调试信息不匹配",并且我无法设置断点等,但是:
However, when I try to debug, VS says that "debugging information does not match", and I am unable to set breakpoints etc., but:
- PDB文件在那里,调试可执行文件的文件夹和名称相同;
- 以调试模式构建的应用程序,已启用调试信息;
- 使用Visual Studio 2010或2013生成工具时,调试器工作正常;
- 如果在Visual C ++ 6 IDE中打开项目,调试器将正常运行.
我尝试重新安装所有Visual Studio版本以及Daffodil,但没有解决. 任何线索可能是什么问题?
I tried reinstalling all Visual Studio versions as well as Daffodil, but didn't solve. Any clue what could the problem be?
推荐答案
最后,我实际上找到了一个可行的解决方案!
Finally I actually found a working solution!
对于VS 2013: 启用本机编辑并继续" 在工具"->选项"->调试"->编辑并继续"下
for VS 2013: Enable "Native Edit and Continue" under Tools->Options->Debugging->Edit and Continue
对于VS 2015: 启用使用本机兼容模式" 在工具"->选项"->调试"->常规"下
for VS 2015: Enable "Use Native Compatibility Mode" under Tools->Options->Debugging->General
这篇关于在Visual Studio 2013中使用v60平台工具集时,调试信息不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!