简体   繁体   中英

When i press F5, an “Attach to Process” window opens

I have so many different C# source projects that run OK on other computers.

But on one computer, using Visual Studio 2013, when i press F5 to run the project, the "Attach to Process" window opens.

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. 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.

One other thing to try; from F5 or Start Debugging Button is Greyed Out for Winform application? 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? Sometimes they are configured to automatically attach to a running process. Keep in mind only one debugger can be attached to one process.

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