VScode cannot debug C language "launch:program'C:\C\launch.exe'does not exist"

Asked 2 years ago, Updated 2 years ago, 74 views

I was going to debug from running C language in VScode, but I got the following error and I can't.

launch:program'C:\C\launch.exe' does not exist

MinGW has been installed and the environment variable PATH has been configured.
The operating system is Windows 10, and MinGW was installed from the official site.We checked only Mingw-32-base-bin for installation.

The C file you are trying to edit is in Acer(C:) with a folder called .vscode (which contained the JSON file named lanch.json).
The C/C++ Extension is installed in VScode.

c vscode

2022-09-30 16:04

1 Answers

The error message is C:\C\launch.exe does not exist

.

I think the causes and countermeasures are as follows.

  • I forgot to create the file C:\C\launch.exe (I haven't compiled it yet).
    ->launch.exe is OK

  • launch.exe has been created in a different folder than C:\C\.
    ->launch.exe can be moved to C:\C\

You forgot to create the file C:\C\launch.exe (I haven't compiled it yet).
->launch.exe is OK

I created launch.exe in a different folder than C:\C\.
->launch.exe can be moved to C:\C\


2022-09-30 16:04

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.