[英]Cannot Debug in VS2017 with Windows 10
I have a solution with 4 projects, three of them are C++, and one is C#. 我有一个包含4个项目的解决方案,其中三个是C ++,一个是C#。 I am trying to debug the C# one, but am unable to. 我正在尝试调试C#,但无法调试。 Every single time I try, I get an error that says 每次尝试,我都会收到一条错误消息:
Unable to start debugging. 无法开始调试。 check your debugger settings by opening project properties and navigating to 'Configuration Properties -->Debugging' 通过打开项目属性并导航到“配置属性->调试”来检查调试器设置
Configuration is Debug, and the Platform is Any CPU. 配置是调试,平台是任何CPU。 I am not debugging on a remote machine. 我不在远程计算机上调试。
I have VS2017 installed on Windows 10. 我在Windows 10上安装了VS2017。
Cannot Debug in VS2017 with Windows 10 使用Windows 10在VS2017中无法调试
According to the error message: 根据错误信息:
check your debugger settings by opening project properties and navigating to 'Configuration Properties -->Debugging' 通过打开项目属性并导航到“配置属性->调试”来检查调试器设置
This should be the debuger settings for C++ project rather than C# project: 这应该是C ++项目而不是C#项目的调试器设置:
C++: C ++:
C#: C#:
So , first, you should make sure your StartUp Project is C# project . 因此 ,首先,您应该确保StartUp Project是C#project 。 And for the C++ project, you can create a new blank C++ project, then compare the debugger settings of the problematic project with the settings of the new project. 对于C ++项目,您可以创建一个新的空白C ++项目,然后将有问题的项目的调试器设置与新项目的设置进行比较。
Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.