【发布时间】:2022-01-23 18:45:37
【问题描述】:
我正在尝试在(M1,2020,macOS Monterey)上的 Visual Studio Code 中调试 C 程序,并在调试控制台中不断收到相同的错误。
"ERROR: Unable to start debugging. Unexpected LLDB output from command "-exec-run". process exited with status -1 (attach failed ((os/kern) invalid argument)"
我的 launch.json 看起来像:
"version": "0.2.0",
"configurations": [
{
"name": "gcc - Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
"preLaunchTask": "C/C++: gcc build active file"
}
]
}```
Any suggestions?
【问题讨论】:
标签: c arm64 macos-monterey