[英]When i press F5, an “Attach to Process” window opens
I have so many different C# source projects that run OK on other computers. 我有很多不同的C#源项目,这些项目在其他计算机上可以正常运行。
But on one computer, using Visual Studio 2013, when i press F5 to run the project, the "Attach to Process" window opens. 但是在一台计算机上,使用Visual Studio 2013,当我按F5键运行该项目时,将打开“附加到进程”窗口。
I searched a lot but no one have had my problem. 我搜索了很多,但没有人遇到我的问题。 Why is it like this? 为什么会这样呢? How can i fix it? 我该如何解决?
Edit: 编辑:
I re installed the VS with C# configurations but it did not change anything. 我用C#配置重新安装了VS,但是它没有任何改变。 the Start Debugging option is disabled just like the screen shot below: 如下图所示,“启动调试”选项被禁用:
That will occur when you don't have a startup project set. 当您没有设置启动项目时,就会发生这种情况。
Right click the project you want to start and select "Set as Startup Project". 右键单击要启动的项目,然后选择“设置为启动项目”。 Now F5 will run that project. 现在F5将运行该项目。
One other thing to try; 另一件事可以尝试; from F5 or Start Debugging Button is Greyed Out for Winform application? 从F5或“开始调试”按钮显示为Winform应用程序为灰色? is to: 是为了:
Do you have DebugDiag or some other debugger (eg WinDbg) running in the background? 您是否在后台运行DebugDiag或其他调试器(例如WinDbg)? Sometimes they are configured to automatically attach to a running process. 有时将它们配置为自动附加到正在运行的进程。 Keep in mind only one debugger can be attached to one process. 请记住,一个进程只能附加一个调试器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.