When I am trying to run a program in Visual Studio, I do not have the option to debug the program. I only have the option to "Attach". I have looked up other solutions to this problem but I do not have anything to solve the problem. I will be attaching an image to this post. Thank you in advance for your time.
- Microsoft Visual Studio Community 2017
- Version 15.9.5
- Microsoft .NET Framework
- Version 4.7.03056
1 Answer
You can't debug a single file, you'll need to open a Solution(.sln) or Project (.vcxproj) instead. The Solution/Project contains all the configuration, settings and files needed for the program. Inside the folder you got from school should be a .sln or .vcxproj file (or both). Solutions can hold multiple Projects. Projects are the individual programs you're writing. Open that and try debugging again.
1