admin管理员组文章数量:1289529
I am receiving the "error: unknown option: --interpreter=mi" when trying to debug with lldb in VS Code on Mac for C++, Clang Compiler, and an OpenMP implementation. I am unable to debug because of it. Below is the launch.json then tasks.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Build with Clang and OpenMP",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/CS267/tom_2.1/build/openmp", // Path to compiled binary
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/CS267/tom_2.1/",
"environment": [],
"externalConsole": false,
"MIMode": "lldb", // Use LLDB for debugging
"setupCommands": [
{ "text": "-enable-pretty-printing", "description": "Enable pretty printing", "ignoreFailures": true }
],
"preLaunchTask": "Build with Clang and OpenMP",
"miDebuggerPath": "/usr/bin/lldb" // Path to LLDB on macOS
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "Build with Clang and OpenMP",
"type": "shell",
"command": "cmake",
"args": [
"--build",
"${workspaceFolder}/CS267/tom_2.1/build"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$gcc"],
"detail": "Generated task by debugging configuration."
}
]
}
I have tried editing the tasks.json and launch.json numerous times to no avail. Chat has not helped.
I am receiving the "error: unknown option: --interpreter=mi" when trying to debug with lldb in VS Code on Mac for C++, Clang Compiler, and an OpenMP implementation. I am unable to debug because of it. Below is the launch.json then tasks.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Build with Clang and OpenMP",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/CS267/tom_2.1/build/openmp", // Path to compiled binary
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/CS267/tom_2.1/",
"environment": [],
"externalConsole": false,
"MIMode": "lldb", // Use LLDB for debugging
"setupCommands": [
{ "text": "-enable-pretty-printing", "description": "Enable pretty printing", "ignoreFailures": true }
],
"preLaunchTask": "Build with Clang and OpenMP",
"miDebuggerPath": "/usr/bin/lldb" // Path to LLDB on macOS
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "Build with Clang and OpenMP",
"type": "shell",
"command": "cmake",
"args": [
"--build",
"${workspaceFolder}/CS267/tom_2.1/build"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$gcc"],
"detail": "Generated task by debugging configuration."
}
]
}
I have tried editing the tasks.json and launch.json numerous times to no avail. Chat has not helped.
Share Improve this question asked Feb 20 at 8:04 superbadtunacansuperbadtunacan 12 bronze badges1 Answer
Reset to default 0lldb-mi is not bundled with lldb, it's a separate package you can get here:
https://github/lldb-tools/lldb-mi
But lldb-mi hasn't seen much support in quite a while now. Most of the effort to support VSCode is done on the lldb-dap adaptor, which is part of the standard lldb release. You might try using that instead.
本文标签:
版权声明:本文标题:visual studio debugging - "error: unknown option: --interpreter=mi" trying to debug with lldb on Mac - Stack O 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741452361a2379557.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论