Skip to content

Instantly share code, notes, and snippets.

@jinyongp
Last active October 3, 2021 16:56
Show Gist options
  • Save jinyongp/22cfb1928391f11dfbbe38d5f439adad to your computer and use it in GitHub Desktop.
Save jinyongp/22cfb1928391f11dfbbe38d5f439adad to your computer and use it in GitHub Desktop.
C++ LLDB Debug launch.json
{
// Manual: https://github.com/vadimcn/vscode-lldb/blob/master/MANUAL.md
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "C++ Debug",
"cwd": "${workspaceFolder}",
"stopOnEntry": false,
"internalConsoleOptions": "neverOpen",
"terminal": "integrated",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"stdio": ["input", "output", "error"],
"args": [],
"sourceLanguages": ["cpp"],
"initCommands": [
"platform shell g++ -std=c++17 -stdlib=libc++ -g ${file} -o ${fileDirname}/${fileBasenameNoExtension}"
],
"exitCommands": [
"platform shell rm ${fileDirname}/${fileBasenameNoExtension}",
"platform shell rm -rf ${fileDirname}/${fileBasenameNoExtension}.dSYM"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment