简体   繁体   English

C#Visual Studio 2010无法开始调试

[英]C# Visual Studio 2010 doesn't start debugging

I'm developing with the Framework 3.5 in C#. 我正在使用C#中的Framework 3.5进行开发。 When I click "start debugging" nothing happens. 当我单击“开始调试”时,没有任何反应。 I've tried with other projects(including a new project) and they won't start. 我已经尝试过其他项目(包括新项目),但它们不会启动。 Instead VS2013 project doesn't have problems. 相反,VS2013项目没有问题。 Until 10 minutes ago it worked, i don't know how to solve. 直到10分钟前它起作用了,我不知道如何解决。 If you need more details ask. 如果您需要更多详细信息,请询问。 Thanks. 谢谢。

I tried: 我试过了:

  • Restart Computer 重新启动电脑
  • Reload Visual Studio 重新加载Visual Studio
  • Create a New Project 创建一个新项目
  • Reset Configurations 重置配置
  • Repair Visual Studio 修复Visual Studio

I noticed that with audio on when I start debugging it does the error sound without show any error message. 我注意到在开始调试时打开音频会发出错误声音,而不会显示任何错误消息。 It's like the debug is starting because the pause and stop buttons appear, but the program doesn't start. 就像调试开始一样,因为出现了暂停和停止按钮,但是程序没有启动。 I tried to put breakpoint at the begin of the main(), nothing. 我试图在main()的开头放置断点,什么也没有。 While the "debugging" is started if i try to pause it appear an error message: "Unable to break execution" 如果我尝试暂停“调试”,则会出现错误消息:“无法中断执行”

I tried uninstall VS2010, it gives me "Internal Error: 1058". 我尝试卸载VS2010,它给我“内部错误:1058”。 I used Visual Studio 2010 Uninstall Utility, it says Uninstall complete but VS2010 is still in the computer. 我使用了Visual Studio 2010卸载实用程序,它说“卸载完成”,但VS2010仍在计算机中。 I don't know what kind of evil is in my computer 我不知道我的电脑里有什么邪恶

I use xampp, so i stopped the IIS service to keep the port 80 free, i thought that this could be the problem. 我使用xampp,所以我停止了IIS服务以保持端口80空闲,我认为这可能是问题所在。 Then i tried to start IIS service and gives me this error: "Cannot start service w3svc on computer '.'" so i followed this IIS w3svc error and it worked, IIS now starts and i was able to uninstall VS2010. 然后,我尝试启动IIS服务,并给我以下错误:“无法在计算机'。'上启动服务w3svc”,因此我遵循了该IIS w3svc错误并成功运行,IIS现在已启动,并且我能够卸载VS2010。 Well then I reinstalled VS2010 hoping the problem was solved. 好吧,然后我重新安装了VS2010,希望问题得以解决。 I was wrong, debug still doesn't start, same problem as above. 我错了,调试仍然无法启动,与上述问题相同。

Solved. 解决了。 I formatted and reinstalled Windows. 我格式化并重新安装了Windows。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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