修改launch.json爲
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "test tree",
"type": "lldb", //修改原有的爲lldb
"request": "launch",
"program": "${workspaceFolder}/build/a.out",
"args": [
],
"stopAtEntry": true,
"cwd": "${workspaceFolder}/build/",
"environment": [],
"externalConsole": false,
"MIMode": "lldb"
}
]
}