当前位置:网站首页>Vs code problem: launch:program '... \ vscode\launch. exe‘ dose not exist
Vs code problem: launch:program '... \ vscode\launch. exe‘ dose not exist
2022-07-19 03:25:00 【Cat hunting and beast riding】
VS Code problem :launch:program'...\.vscode\launch.exe' dose not exist
Problem description
Follow the instructions of bloggers , to VS Code To configure C++ Language environment , Reference recommendation : Dish to buckle ↑ The blog of . According to the instructions , Configured with launch.json,task.json and c_cpp_properties.json Three files . function .cpp Wrong times for documents .

Original from :https://www.pianshen.com/article/56791875146/.
To solve the process
According to the problem description , lookup “launch:program’…vscode\launch.exe’ dose not exist” Related solutions . Browse many blogs , The solution mainly revolves around confirmation launch.json and tasks.json Whether the relevant contents of are unified , It mainly includes :
- confirm
tasks.jsonMediumlabelAndlaunch.jsonMediumpreLaunchTaskIs it unified . There are many settings here , Just ensure that the two are unified . Reference blog 3 - take
tasks.jsonIn the documentcommandSet tog++. Reference blog 4. After the blog is configured according to the previous configuration , I'm here for"C:\\TDM-GCC-64\\bin\\g++.exe", Point tog++compiler . - modify
task.jsoninargsandlaunch.jsoninprogramSet up , take${workspaceFloder}It is amended as follows${fileBasenameNoExtension}. Reference blog 5.
I checked my configuration file carefully , as follows :
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "g++.exe - Generate and debug active files ",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,// Pop up the console window
"MIMode": "gdb",
"miDebuggerPath": "C:\\TDM-GCC-64\\bin\\gdb.exe",// Own debugger location
"setupCommands": [
{
"description": " by gdb Enable neat printing ",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: g++.exe build active file"
}
]
}
tasks.json
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "C/C++: g++.exe build active file",
"command": "C:\\TDM-GCC-64\\bin\\g++.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "test",
"isDefault": true
}
}
]
}
c_cpp_properties.json
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"compilerPath": "C:\\TDM-GCC-64\\bin\\gcc.exe",
"cStandard": "c11",
"cppStandard": "gnu++14",
"intelliSenseMode": "gcc-x64"
}
],
"version": 4
}
Make sure that the contents of the three documents are ok . therefore , I have browsed the configuration process again , Find a problem : In the configuration c_cpp_properties.json Before ,.cpp The file is compiled as .exe. So the problem is not the settings in the configuration document , It's the choice of compiler . Search for “VS Code Cannot be .cpp Compiled into .exe”, find Good blog . The problem is shell On .
ok , This sentence “Hello world !” It's hard to say .
Reference Content
- Dish to buckle ↑. VScode To configure C/C++ Environment simple tutorial (2 minute ). CSDN Blog
- solve VSCode appear “launch: program … does not exist” The problem of . Programmer base
- Takai Da Dajun . Visual Studio Code(VS Code) To configure C/C++ Common environmental problems and solutions . CSDN Blog
- Nuclear fusion Q. VS Code,launch:program ‘ route …exe‘dose not exsit,undefined reference to `std::cout‘. CSDN Blog
- The starry sky is full of butterflies . Visual studio code To configure c++ In the operating environment of , appear launch:program’- route -'does not exist( Xiaobai, look here ). CSDN Blog
边栏推荐
- mysql复制表
- Pure virtual function
- This is a mathematical problem
- Polynomial interpolation fitting (I)
- [MySQL] MHA high availability
- Wechat applet
- Using gatekeeper to restrict kubernetes to create specific types of resources
- Specifications、多表查询基础
- Win10 onedrive failure reinstallation
- MySQL log management and full backup incremental backup and recovery
猜你喜欢

JDBC连接Mysql数据库

05_ Service call ribbon
![[MySQL] data query operation (select statement)](/img/22/9c20d80296622c4516f361654075d6.png)
[MySQL] data query operation (select statement)

MySQL interview questions (2022)
![[NoSQL] redis configuration and optimization of NoSQL (simple operation)](/img/e4/dcfeb675fd0ff4be3687547b28048d.png)
[NoSQL] redis configuration and optimization of NoSQL (simple operation)

GraphQL初识
![[regression prediction] lithium ion battery life prediction based on particle filter with matlab code](/img/1d/5562934499edfb4781b1118d0c4f9c.png)
[regression prediction] lithium ion battery life prediction based on particle filter with matlab code
![mysqldump: [Warning] Using a password on the command line interface can be insecure.](/img/91/8b0d35f85bc0f46daac4e1e9bc9e34.png)
mysqldump: [Warning] Using a password on the command line interface can be insecure.

Is there really no way out for functional testing? 10K capping is never a joke

代理模式——B站动力节点
随机推荐
About XML file (VI) - the difference between JSON and XML file
Introduction to wangeditor (entry level)
While loop
深入理解机器学习——类别不平衡学习(Imbalanced Learning):样本采样技术-[人工采样技术之SMOTE采样法及Borderline-SMOTE采样法]
A Youku VIP member account can be used by several people to log in at the same time. How to share multiple people using Youku member accounts?
Systick timer basic learning and hand tearing code
04_ Service registration Eureka
Latest installation tutorial of VMware Tools (rhel8)
RuntimeError_ Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor)
The installation software prompts that the program input point adddlldirectory cannot be located in the dynamic link library kernel32 DLL (download address at the end of the text)
Monte Carlo based reinforcement learning method [with code implementation]
XX市高中网络拓扑整体规划配置
Is there really no way out for functional testing? 10K capping is never a joke
Theoretical basis and code implementation of dueling dqn [pytoch + pendulum-v0]
MySQL interview questions (2022)
After 4 years of developing two-sided meituan, we finally lost: the interview question of volatile keyword function and principle
First blog ----- self introduction
Powertor500t reports an error 0x01806803
Flutter development: running the flutter upgrade command reports an error exception:flutter failed to create a directory at... Solution
C language foundation day4 array