简体   繁体   中英

Debugger Not Installed While Starting C# Console App in Visual Studio Community 2017

I have freshly installed Visual Studio Community 2017. I have a simple console app that prints a message. When I click the Start button I get the message

Error while trying to run project: Unable to start program

The debugger is not properly installed. Run setup to install or repair the debugger.

If I click on Debug in the menu and Start Without Debugging, I see the output of the program, so build and run seem to be working. However, I guess the debugger is not installed and I'm not sure how to install it. I've done exhaustive Google searches and seen posts talking about running regsvr32 and repair, both of which have proved fruitless.

EDIT:

Installing VS2015 fixed the problem.

@David Bradford, long time after Novell isn't it? Anyway, after looking all over the place this is the best solution I found. You don't have to install VS2015 just follow the directions below. I tried this and it fixed the problem for me and another person I was working with.

Link to the VS developer community that has various comments and the fix below

Added a solution by Andrey · Jun 23 at 06:01 PM Best Solultion C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\VS7Debug C:\\Program Files\\Common Files\\microsoft shared\\VS7Debug

Solution for this problem for Visual Studio 2017 Community.

Clean folders: Delete all the files in the two folders C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\VS7Debug C:\\Program Files\\Common Files\\microsoft shared\\VS7Debug Then run repair Visual Studio by clicking the menu (three lines stacked up) to the right of the Modify and Launch buttons. PS This issue happen because dlls corrupted. Here is this case shareimprove this answer

This seems to be a known issue and is under investigation by the VS 2017 team. More information here: https://developercommunity.visualstudio.com/content/problem/26630/the-debugger-is-not-properly-installed-cannot-debu.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM