vscode配置boost的tasks,c_cpp_properties.json出现问题
你可以参考这篇文章从新配置一下:https://www.cnblogs.com/sddai/p/9508696.html
task.json给launch.json用的
launch.json配置如下
{
"name": "G++ Debug",//debug页面显示的名字
"type": "cppdbg",
"request": "launch",
"preLaunchTask": "multi-thread build",//对应task.json的label
"program": "${fileDirname}/${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
然后再debug页面左上角选择名字后按F5