when i open my vs c++ i cant use ctrl + f5 and there is something called attach and its supposed to be my file that i save my program in it i hope to get some answers

braa egbaria 21 Reputation points
2021-01-05T11:05:08.92+00:00

it i hope to get some answers

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
999 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 54,401 Reputation points
    2021-01-05T15:20:18.753+00:00

    Please be more specific.

    "VS C++" - you mean Visual Studio?

    "ctrl+F5" - you want to start debugger without debugging? That is almost always the wrong answer. You want to press F5 to start debugging.

    Most likely you haven't opened the solution. Starting VS does not automatically load a solution unless you specify one. Therefore there is nothing to debug. Open the solution that contains the code you want to debug. If you're using VS 2019 then the Start Window should pop up when you first start VS. Inside there is a list of recent solutions and projects you've opened. Select the solution from there. If you are running an older version of VS then you can get to the recent solutions using the File menu. In either case load the solution containing the code you want to debug (it must be in a project) and you will then have the option to debug (F5) to compile and debug the code.

    Debug a C++ Program
    Learn to Debug C++
    Solutions and Projects


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.