简体   繁体   English

使用Windows 10在VS2017中无法调试

[英]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.

相关问题 如何在Windows 10上安装GCC以在VS2017中使用 - How to install GCC on Windows 10 for use in VS2017 VS2017调试:无启动URL设置 - VS2017 Debug: no Launch URL setting 如何在VS2017中的不同区域设置中进行调试 - How to debug in a different locale in VS2017 VS2017无法发现MSTest测试 - VS2017 cannot discover MSTest tests 我在Windows 10上使用VS2017编译了一个安装项目。它可以在XP上运行吗? - I compiled a setup project with VS2017 on Windows 10. Can it run on XP? 在.NET Core项目的VS2017中禁用调试/启动 - Debug/Start disabled in VS2017 on .NET Core projects log4net调试附加程序在VS2017社区中不起作用 - log4net debug appender not working in VS2017 Community VS2017运行调试选定的测试无法打开调试器 - VS2017 running debug selected tests does not open the debugger 自VS2017 15.7.1升级以来,无法调试U-SQL中使用的本地C#代码; 本地运行失败或被终止 - Cannot debug local C# code used in U-SQL since VS2017 15.7.1 upgrade; Local run failed or was terminated UWP (Windows 10) 后台任务 - 调用 COM 组件时返回了错误 HRESULT E_FAIL (VS2017) - UWP (Windows 10) Background Task - Error HRESULT E_FAIL has been returned from a call to a COM component (VS2017)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM