安装调试器
用插件市场先安装 CodeLLDB
然后下载附带插件:
https://github.com/vadimcn/codelldb/releases/download/v1.11.5/codelldb-darwin-arm64.vsix
ctrl + shift + p,查找install from vsix,安装这个插件
Launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Launch",
"program": "${workspaceFolder}/build/testexe.app/Contents/MacOS/testexe",
"args": [],
"cwd": "${workspaceFolder}",
"preLaunchTask": "CMake Build" ,// 在调试前先运行构建任务
"terminal": "integrated",
"env": { "LANG": "zh_CN.UTF-8", "LC_ALL": "zh_CN.UTF-8" }
}
]
}
按f5 即可开始调试了

8万+

被折叠的 条评论
为什么被折叠?



