When I do this, I'm able to pick the container I'd like to connect to. This would be the perfect solution if not for the fact that this means I can only debug one container at a time. In the first case, I can choose multiple launch configurations and debug them at the same time...
先自建一个lanuch.json文件(参考配置方法二中的第三步) 如果lanuch.json中有内容的话,先把configurations中的内容注释掉或者删除掉 全选configurations中的内容,按下快捷键ctrl + / 即可快速注释选中内容。 我们只需要修改两项内容即可 第一处:program - 可执行程序路径 该项内容表示调用的程序路径,其值应和task.json...
"version": "0.2.0", "configurations": [ {//这个大括号里是我们的‘调试(Debug)’配置 "name": "Debug", // 配置名称 "type": "cppdbg", // 配置类型,cppdbg对应cpptools提供的调试功能;可以认为此处只能是cppdbg "request": "launch", // 请求配置类型,可以为launch(启动)或attach(附加) "program"...
{ "configurations": [ // c的相关配置 { "name": "Win32_C", // 配置名称 "includePath": [ "${workspaceFolder}/**" ], "defines": [ "_DEBUG", "UNICODE", "_UNICODE" ], "compilerPath": "D:\\Program Files (x86)\\mingw64\\bin\\gcc.exe", // 编译器路径 "cStandard": "c17",...
"configurations": [ { "name": "Win32", "includePath": [ "${workspaceRoot}", "D:/MinGW-W64/mingw64b/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++", "D:/MinGW-W64/mingw64b/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32", ...
"configurations":[{"name":"Python","type":"python","request":"launch","stopOnEntry":true,"pythonPath":"${config.python.pythonPath}","program":"${file}","debugOptions":["WaitOnAbnormalExit","WaitOnNormalExit","RedirectOutput"]},{"name":"Flask","type":"python","request":"launch"...
Choose C/C++: g++.exe build and debug active file.VS Code creates a launch.json file in the .vscode folder`, which looks something like this:{ "configurations": [ { "name": "C/C++: g++.exe build and debug active file", "type": "cppdbg", "request": "launch", "program": "${...
"version": "0.2.0", "configurations": [ {//包含Debug配置 "name": "gcc...
linkid=830387"version":"0.2.0","configurations":[{"name":"gdbdebug","type":"cppdbg","request":"launch","program":"${workspaceFolder}\\main.exe",//调用的exe名,要与tasks生成的exe名一致"args":[],"stopAtEntry":false,"cwd":"${workspaceFolder}","environment":[],"externalConsole":true,...
window had an "Add Configuration..." button in its bottom right corner, so I clicked that and it gave me a dropdown of language options just below the "configurations" name. I picked ".Net Lanch .Net Core console app" and it gave me a prepared block of settings for "configurations"....