vscode远程调试linuxlaunch.json12345678910111213141516171819202122232425{ "version": "0.2.0", "configurations": [ { "name": "(gdb) Launch", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/build/debug/${fileDirnameBasename}", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "gdb", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ], "preLaunchTask": "CMake Build" } ]} tasks.json123456789101112131415161718192021222324252627{ "options": { "cwd": "${workspaceFolder}/build" }, "tasks": [ { "label": "cmake", "command": "cmake", "args": [ "-DCMAKE_BUILD_TYPE=Debug", ".." ] }, { "label": "make", "command": "make" }, { "label": "CMake Build", "dependsOn": [ "cmake", "make" ] } ], "version": "2.0.0"}