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?
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.