Visual Studio: launch: program 'c:\C\Debug\outDebug' does not exist

Joined
Feb 27, 2023
Messages
1
Reaction score
0
7dc670dc5812317f4f4759070835bca0.png
 
Joined
Mar 5, 2023
Messages
36
Reaction score
12
Usually indicates that the IDE is unable to locate the executable file for your project.

Here are some steps you can take to resolve the issue:

  1. Make sure that your project has been built successfully. If there were errors during the build process, the executable file may not have been created. Check the output window for any error messages.
  2. Check the path specified in the error message. Make sure that the path is correct and that the executable file is located in the specified directory.
  3. If the path is incorrect, you may need to update the project settings to specify the correct output directory. To do this, right-click on the project in the Solution Explorer, select "Properties", and go to the "Configuration Properties" > "General" page. Make sure that the "Output Directory" setting is set to the correct path.
  4. If the executable file is not located in the specified directory, you may need to rebuild the project. To do this, go to the "Build" menu and select "Rebuild Solution".
  5. If none of the above steps work, try creating a new project and see if you can build and run it successfully. This can help isolate whether the issue is specific to your project or a more general problem with Visual Studio.

hopefully one of these worked, let me know how you go :)
 
Joined
Sep 8, 2023
Messages
1
Reaction score
0
here is my solution, I tried everything I've seen on internet but this worked for me:

go to launch.json file and you will see

"program":"C:\....\build\debug\outDebug",

change this as:

"program": ""${fileDirname}\\${fileBasenameNoExtension}.exe"
this solution worked for me.
I'm using windows 11 and installed msys2 as vscode's own page recommended. also make sure that the build has done succesfully and a task.json file has created in vs code file in your repos.
I'll also share vs code and youtube link that helped me a lot, so maybe you can find what you're looking for:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,790
Messages
2,569,637
Members
45,346
Latest member
EstebanCoa

Latest Threads

Top