简体   繁体   English

当我按F5键时,“附加到处理”窗口打开

[英]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: 是为了:

  1. Exclude the project from you application 从应用程序中排除项目
  2. Build the solution 建立解决方案
  3. Re-add the project 重新添加项目
  4. Build again 再次建立
  5. Set the project as the startup project 将项目设置为启动项目

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.

相关问题 在 F5 上附加到 IIS - Attach to IIS on F5 Visual Studio F5调试比Attach to Process慢 - Visual Studio F5 debugging is slower than Attach to Process Blazor:按 F5 刷新时导航菜单消失(问题:Datatables.net) - Blazor: NavMenu disappearing when I press F5 to refresh (Issue: Datatables.net) Visual C#2010 Express Edition-当我按F5键时,是否存储创建的文件? - Visual C# 2010 Express Edition - When I press F5, do files created get stored? 当我单击调试或按F5时,Visual Studio项目无法构建 - Visual Studio project not building when I click debug or press F5 我在我的解决方案中添加了一个新的XML文件,但是当我按F5进行测试时,我在Debug文件夹中找不到.xml文件 - I added a new XML file to my solution, but when I press F5 to test it I can't find the .xml file in the Debug folder 每当我按F5时,如何使Visual Studio生成项目? - How to make Visual Studio build the project whenever I press F5? 当在JavaScript中有window.onbeforeunload时,刷新按钮/ F5直接发送到控制器(mvc) - Refresh button/F5 send directly to the controller(mvc) when have window.onbeforeunload in a javascript 将窗口附加到另一个进程的窗口 - Attach window to window of another process 按键事件(按说1将打开一个进程,按2将关闭该进程) - keydown events ( press say 1 it opens a process press 2 it closes that process)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM