当前位置:网站首页>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
边栏推荐
- SQL classic exercises (x30)
- mysqldump: [Warning] Using a password on the command line interface can be insecure.
- 04_服务注册Eureka
- We should increase revenue and reduce expenditure
- Wechat applet
- ncnn DataReader&Extractor&blob
- Several methods of face detection
- Authentication code for wireless
- [Jianzhi offer] 31-35 questions (judge whether a sequence is one of the out of stack sequences, sequence print binary tree, branch print, and reverse print each line), judge whether the sequence is th
- The WinRAR command copies the specified folder as a compressed file, and calls the scheduled task for backup.
猜你喜欢

Use RZ, SZ commands to upload and download files through xshell7
![[MySQL] MHA high availability](/img/d3/d9830f3c331193fd40b8f00ebe35fa.png)
[MySQL] MHA high availability

【剑指Offer】31-35题(判断一个序列是否是栈的出栈序列之一,层序打印二叉树以及分行打印、每行逆着打印),判断序列是否是二叉搜索树的后序遍历路径,二叉树找一条权值为K的路径,复制复杂链表

Rhce8 Study Guide Chapter 2 use of basic commands

MySQL multi table query

Zabbix6.0 monitoring vcenter7.0

一个优酷VIP会员帐号可以几个人用的设备同时登录如何共享多人使用优酷会员账号?

ES6學習筆記——B站小馬哥

Flutter开发:运行flutter upgrade命令报错Exception:Flutter failed to create a directory at…解决方法

RTX3090安装pytorch3D
随机推荐
Snapshot: data snapshot (data disclosure method)
Theoretical basis and code implementation of dueling dqn [pytoch + pendulum-v0]
数据源对象管理(第三方对象资源) & 加载properties文件
[Jianzhi offer] 31-35 questions (judge whether a sequence is one of the out of stack sequences, sequence print binary tree, branch print, and reverse print each line), judge whether the sequence is th
Obvious things
By voting for the destruction of STI by Dao, seektiger is truly community driven
Wechat applet
深入理解机器学习——类别不平衡学习(Imbalanced Learning):样本采样技术-[人工采样技术之SMOTE采样法及Borderline-SMOTE采样法]
Authentication code for wireless
Systick timer basic learning and hand tearing code
zsh: command not found: mysql
About XML file (VI) - the difference between JSON and XML file
while 循环
Zabbix6.0 monitors Dell and IBM server hardware through Idrac and imm2
Built in keyboard continuous 444
[regression prediction] lithium ion battery life prediction based on particle filter with matlab code
[MCU simulation] (XVII) control transfer instructions - call and return instructions
This is a mathematical problem
Pytorch best practices and code templates
ncnn paramdict&modelbin