|
10 | 10 | // "console": "integratedTerminal"
|
11 | 11 | // },
|
12 | 12 | {
|
13 |
| - "name": "C/C++: g++.exe build and debug active file(Recommend for C++(by The way C) Starter)", |
| 13 | + "name": "C/C++: g++ build and debug active file(Recommend for C++(by The way C) Starter)", |
14 | 14 | "type": "cppdbg",
|
15 | 15 | "request": "launch",
|
16 |
| - // "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", |
17 |
| - // "program": "${fileDirname}\\a.exe", |
18 |
| - "program": "${workspaceFolder}\\a.exe", |
| 16 | + // "program": "${fileDirname}/${fileBasenameNoExtension}.exe", |
| 17 | + // "program": "${fileDirname}/a.exe", |
| 18 | + "program": "${workspaceFolder}/a.exe", |
19 | 19 | "args": [],
|
20 | 20 | "stopAtEntry": false,
|
21 |
| - "cwd": "${workspaceFolder}",//注意和对应的task配合 |
| 21 | + "cwd": "${workspaceFolder}", //注意和对应的task配合 |
22 | 22 | "environment": [],
|
23 | 23 | "externalConsole": false,
|
24 | 24 | "MIMode": "gdb",
|
|
38 | 38 | "preLaunchTask": "task2"
|
39 | 39 | },
|
40 | 40 | {
|
41 |
| - "name": "C/C++: gcc.exe build and debug active file(Recommend for C(by The way c++) Starter)", |
| 41 | + "name": "C/C++: gcc build and debug active file(Recommend for C(by The way c++) Starter)", |
42 | 42 | "type": "cppdbg",
|
43 | 43 | "request": "launch",
|
44 |
| - // "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", |
45 |
| - "program": "${fileDirname}\\a.exe", |
| 44 | + // "program": "${fileDirname}/${fileBasenameNoExtension}.exe", |
| 45 | + "program": "${fileDirname}/a.exe", |
46 | 46 | "args": [],
|
47 | 47 | "stopAtEntry": false,
|
48 | 48 | "cwd": "${fileDirname}",
|
|
65 | 65 | "preLaunchTask": "task2c"
|
66 | 66 | },
|
67 | 67 | {
|
68 |
| - "name": "C/C++: g++.exe build and debug active file external console", |
| 68 | + "name": "C/C++: g++ build and debug active file external console", |
69 | 69 | "type": "cppdbg",
|
70 | 70 | "request": "launch",
|
71 |
| - // "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", |
72 |
| - "program": "${fileDirname}\\a.exe", |
| 71 | + // "program": "${fileDirname}/${fileBasenameNoExtension}.exe", |
| 72 | + "program": "${fileDirname}/a.exe", |
73 | 73 | "args": [],
|
74 | 74 | "stopAtEntry": false,
|
75 | 75 | "cwd": "${fileDirname}",
|
|
96 | 96 | "preLaunchTask": "task externalConsole"
|
97 | 97 | },
|
98 | 98 | {
|
99 |
| - "name": "C/C++: g++.exe build and debug the C++ language files", |
| 99 | + "name": "C/C++: g++ build and debug the C++ language files", |
100 | 100 | "type": "cppdbg",
|
101 | 101 | "request": "launch",
|
102 |
| - // "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", |
103 |
| - "program": "${fileDirname}\\All.exe", |
| 102 | + // "program": "${fileDirname}/${fileBasenameNoExtension}.exe", |
| 103 | + "program": "${fileDirname}/All.exe", |
104 | 104 | "args": [],
|
105 | 105 | "stopAtEntry": false,
|
106 | 106 | "cwd": "${fileDirname}",
|
107 | 107 | "environment": [],
|
108 | 108 | "externalConsole": false,
|
109 | 109 | "MIMode": "gdb",
|
110 |
| - // "miDebuggerPath": "${env:MSYS2_MINGW}\\gdb.exe", |
| 110 | + // "miDebuggerPath": "${env:MSYS2_MINGW}/gdb.exe", |
111 | 111 | "miDebuggerPath": "gdb",
|
112 | 112 | "setupCommands": [
|
113 | 113 | {
|
|
121 | 121 | "ignoreFailures": true
|
122 | 122 | }
|
123 | 123 | ],
|
124 |
| - // "preLaunchTask": "C/C++: g++.exe build active file" |
| 124 | + // "preLaunchTask": "C/C++: g++ build active file" |
125 | 125 | "preLaunchTask": "task1"
|
126 | 126 | },
|
127 | 127 | {
|
128 |
| - "name": "C/C++: g++.exe build and debug the C language files", |
| 128 | + "name": "C/C++: g++ build and debug the C language files", |
129 | 129 | "type": "cppdbg",
|
130 | 130 | "request": "launch",
|
131 |
| - "program": "${fileDirname}\\All.exe", |
| 131 | + "program": "${fileDirname}/All.exe", |
132 | 132 | "args": [],
|
133 | 133 | "stopAtEntry": false,
|
134 | 134 | "cwd": "${fileDirname}",
|
|
151 | 151 | "preLaunchTask": "task1c"
|
152 | 152 | },
|
153 | 153 | {
|
154 |
| - "name": "C/C++: g++.exe build and debug active file(For English, Chinese characters and other non-English characters)", |
| 154 | + "name": "C/C++: g++ build and debug active file(For English, Chinese characters and other non-English characters)", |
155 | 155 | "type": "cppdbg",
|
156 | 156 | "request": "launch",
|
157 |
| - // "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", |
158 |
| - "program": "${fileDirname}\\a.exe", |
| 157 | + // "program": "${fileDirname}/${fileBasenameNoExtension}.exe", |
| 158 | + "program": "${fileDirname}/a.exe", |
159 | 159 | "args": [],
|
160 | 160 | "stopAtEntry": false,
|
161 | 161 | "cwd": "${fileDirname}",
|
|
178 | 178 | "preLaunchTask": "task2"
|
179 | 179 | },
|
180 | 180 | {
|
181 |
| - "name": "C/C++: g++.exe build and debug active file", |
| 181 | + "name": "C/C++: g++ build and debug active file", |
182 | 182 | "type": "cppdbg",
|
183 | 183 | "request": "launch",
|
184 |
| - "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", |
| 184 | + "program": "${fileDirname}/${fileBasenameNoExtension}.exe", |
185 | 185 | "args": [],
|
186 | 186 | "stopAtEntry": false,
|
187 | 187 | "cwd": "${fileDirname}",
|
|
204 | 204 | "preLaunchTask": "task3"
|
205 | 205 | },
|
206 | 206 | {
|
207 |
| - "name": "C/C++: g++.exe build and run active file(no debug)", // 配置名称 |
| 207 | + "name": "C/C++: gcc build and run active file(no debug)", // 配置名称 |
208 | 208 | "type": "cppdbg",
|
209 | 209 | "request": "launch",
|
210 | 210 | "program": "${workspaceFolder}/a.exe", // 指向编译生成的可执行文件
|
211 | 211 | "args": [], // 可选参数,传递给程序的命令行参数
|
212 | 212 | "cwd": "${workspaceFolder}", // 设置工作目录
|
213 | 213 | // "console": "integratedTerminal", // 在 VSCode 的集成终端中运行
|
214 | 214 | "stopAtEntry": false,
|
215 |
| - "preLaunchTask": "build and run", // 指定预执行的编译任务名称 |
| 215 | + "preLaunchTask": "build and run by gcc", // 指定预执行的编译任务名称 |
| 216 | + "internalConsoleOptions": "neverOpen" |
| 217 | + }, |
| 218 | + { |
| 219 | + "name": "C/C++: g++ build and run active file(no debug)", // 配置名称 |
| 220 | + "type": "cppdbg", |
| 221 | + "request": "launch", |
| 222 | + "program": "${workspaceFolder}/a.exe", // 指向编译生成的可执行文件 |
| 223 | + "args": [], // 可选参数,传递给程序的命令行参数 |
| 224 | + "cwd": "${workspaceFolder}", // 设置工作目录 |
| 225 | + // "console": "integratedTerminal", // 在 VSCode 的集成终端中运行 |
| 226 | + "stopAtEntry": false, |
| 227 | + "preLaunchTask": "build and run by g++", // 指定预执行的编译任务名称 |
216 | 228 | "internalConsoleOptions": "neverOpen"
|
217 | 229 | }
|
218 | 230 | ]
|
|
0 commit comments