vscode 调试

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
                }
            ]
        }
    ]
}
相关推荐
无足鸟ICT4 分钟前
【RHCA+】查看变量
linux·运维·服务器
Kina_C14 分钟前
Linux DNS 服务器-从高速缓存到辅助 DNS 部署指南
linux·运维·服务器·dns
hold?fish:palm23 分钟前
9 找到字符串中所有字母异位词
c++·算法·leetcode
suaizai_27 分钟前
TypeScript 7 正式发布!Vue 暂被 “拒之门外“ !!!
linux·运维·ubuntu
慕伏白1 小时前
【慕伏白】Linux 系统如何根据端口号关闭进程
linux·运维·服务器
啦啦啦啦啦zzzz2 小时前
算法:回溯算法
c++·算法·leetcode
letisgo52 小时前
VMware Workstation + Ubuntu 26.04 LTS 小白运维部署手册
linux·运维·ubuntu
IT探索2 小时前
Linux 查找文件指令总结
linux·算法
晚风吹长发2 小时前
Docker使用——Docker容器及相关命令
linux·运维·服务器·docker·容器·架构
Lzg_na2 小时前
订阅发布模块事例
c++