Skip to content

Instantly share code, notes, and snippets.

@davidliyutong
Last active April 25, 2023 16:10
Show Gist options
  • Save davidliyutong/f5dfe9dd10d1e205efd598ed5e5c1e4b to your computer and use it in GitHub Desktop.
Save davidliyutong/f5dfe9dd10d1e205efd598ed5e5c1e4b to your computer and use it in GitHub Desktop.
macos_m1_vscode_lldb.json
{
"version": "0.2.0",
"configurations": [
{
"name": "clang - 生成和调试活动文件",
"type":"cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": true,
"MIMode": "lldb",
"preLaunchTask": "C/C++: clang 生成活动文件",
"targetArchitecture": "arm64"
}
]
},
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: clang 生成活动文件",
"command": "/usr/bin/clang++",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "调试器生成的任务。"
}
],
"version": "2.0.0"
}
@davidliyutong
Copy link
Author

Put them under .vscode

.vscode
├── launch.json
├── settings.json
└── tasks.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment