VScode 调试教程 tasks.json和launch.json的设置(超详细)_vscode launch.json在哪-CSDN博客
launch.json
cpp
{
// 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": "fmt_transform",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/fmt_transform",
"args": [
"../config/fmt_transform/"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "build_debug",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "road_generater",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/road_generater",
"args": [
"../config/road_generater/"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "build_debug",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "road_surface",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/road_surface",
"args": [
"../config/road_surface/"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "build_debug",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "lane_generater",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/lane_generater",
"args": [
"../config/lane_generater/"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "build_debug",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "force_align",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/force_align",
"args": [
"../config/force_align/"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "build_debug",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "zsmooth",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/z_value_smooth",
"args": [
"../config/zsmooth/"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "build_debug",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "boundary_fitting",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/boundary_fitting",
"args": [
"../config/boundary_fitting/"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "build_debug",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
},
{
"name": "obj_generater",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/obj_generater",
"args": [
"../config/obj_generater/"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build",
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "build_debug",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}