Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run program because it asks me to attach on process

I'm new to C# Programming, and instead of just letting me run the code by pressing F5, "Attach..." appears where the Run button should be and it won't let me run the code. This has happened me twice by now and I don't know how to make the "Run" button appear again, because I can't test any program I write.

like image 639
Nicolas Rossi Avatar asked May 25 '15 17:05

Nicolas Rossi


People also ask

Why does Visual Studio says attach instead of run?

You need to create a new Python related project(or open a Python project) in Visual Studio to debug your project which includes the . py file and python codes. Just open a single . py file is not enough to debug the project in Visual Studio, so you will see the “Start” changed to “Attach…”.

What does attach to process mean in Visual Studio?

1. This answer is not useful. Save this answer. Show activity on this post. That means to attach a debugger (i.e visual studio's integrated debugger) to the process so you can pause it and inspect variables at runtime.

What does attaching to debugger mean?

However, there are some situations where you must debug the application in a different way — by attaching to its process. < i>Attaching</i><i> to the process</i> means telling the CPU to send the instructions in the executable code to a debugger before they're executed by the CPU.


1 Answers

Make sure you have your solution opened, then right click on your project > Set as Start Up Project

like image 64
LeBaptiste Avatar answered Oct 03 '22 16:10

LeBaptiste