Can't get Visual Studio to allow me to debug, only "Attach"

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.

enter image description here

  • Microsoft Visual Studio Community 2017
    • Version 15.9.5
  • Microsoft .NET Framework
    • Version 4.7.03056
6

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like