"version": "0.2.0", "configurations": [ { "name": "bustub debug", //!挑个容易识别的名字 "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/bustub-private/build/test/${fileBasenameNoExtension}", //!设置为测试程序源码相对应的目标程序路径 "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": false, "MIMode": "gdb", "setupCommands": [ { "description": "为 gdb 启用整齐打印", "text": "-enable-pretty-printing", "ignoreFailures": true } ], //"preLaunchTask": "C/C++: g++-8 build active file", //!不需要前置任务 "miDebuggerPath": "/usr/bin/gdb" } ]
标签:false,bustub,配置,环境,gdb,源码,build,workspaceFolder From: https://www.cnblogs.com/tkw123/p/17865375.html