【发布时间】:2022-10-01 02:03:27
【问题描述】:
我在跑步代码为了C++上联想军团5,赢得 10,并且在尝试通过 f5 运行 cpp 时,出现错误:
\"无法开始调试。指定的参数超出了有效值的范围。(参数\'arch\')\"
启动 json 是:
\"configurations\": [
{
\"name\": \"C++ Launch\",
\"type\": \"cppdbg\",
\"request\": \"launch\",
\"program\": \"${workspaceFolder}/main.cpp\",
\"environment\": [],
\"args\": [],
\"stopAtEntry\": false,
\"externalConsole\": true,
\"MIMode\": \"gdb\",
\"cwd\": \"${workspaceFolder}\",
\"customLaunchSetupCommands\": [
{ \"text\": \"target-run\", \"description\": \"run target\", \"ignoreFailures\": false }
],
\"launchCompleteCommand\": \"exec-run\",
\"linux\": {
\"MIMode\": \"gdb\",
\"miDebuggerPath\": \"C:\\\\msys64\\\\mingw64\\\\bin\\\\gdb.exe\"
},
\"osx\": {
\"MIMode\": \"lldb\"
},
\"windows\": {
\"MIMode\": \"gdb\",
\"miDebuggerPath\": \"C:/MinGw/bin/gdb.exe\"
}
}
]
}```
I\'m a beginner so I don\'t really know why this is happening.
标签: c++ visual-studio-code gdb