Debug problem

CENGIZHAN KAHRAMAN 0 Reputation points
2023-03-07T22:05:37.0266667+00:00

Debug(F5) or run without debug(CTRL + 5) is not enable. How can I fix this. I use Vs2019 and I can not debug my C++ projets. Please help me

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.
967 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 29,446 Reputation points Microsoft Vendor
    2023-03-08T09:01:10.7333333+00:00

    Hello @CENGIZHAN KAHRAMAN ,

    Welcome to Microsoft Q&A forum.

    Please first check if you are opening a C++ file or opening a C++ project in Visual Studio 2019. Visual Studio doesn’t support debugging/running a single C++ file.

    If you are opening a C++ file in VS, then please try to create a C++ project(File > New > Project > choose a C++ project template), for example C++ Console project and copy the code to the .cpp file in this newly created project, set the breakpoints to debug/run your project. Please also make sure that you have installed Desktop development with C++ workload in VS Installer > Modify > Workload tab.

    If you are opening a C++ project in VS, then please go to Tools > Options > Projects and Solutions > Build And Run > MSBuild project build output verbosity and set it to Detailed, then try to build your project(Build > Build Solution/Rebuild Solution) and check if there’s any error in VS Output Window.

    If the issue persists, could you please share us some screenshots to check further?

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments