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
                }
            ]
        }
    ]
}
相关推荐
jrrz08289 分钟前
LeetCode 热题100(七)【链表】(1)
数据结构·c++·算法·leetcode·链表
二十雨辰17 分钟前
[linux]docker基础
linux·运维·docker
咖啡里的茶i24 分钟前
Vehicle友元Date多态Sedan和Truck
c++
海绵波波10730 分钟前
Webserver(4.9)本地套接字的通信
c++
@小博的博客36 分钟前
C++初阶学习第十弹——深入讲解vector的迭代器失效
数据结构·c++·学习
饮浊酒1 小时前
Linux操作系统 ------(3.文本编译器Vim)
linux·vim
lihuhelihu1 小时前
第3章 CentOS系统管理
linux·运维·服务器·计算机网络·ubuntu·centos·云计算
矛取矛求1 小时前
Linux系统性能调优技巧
linux
One_Blanks2 小时前
渗透测试-Linux基础(1)
linux·运维·安全
Perishell2 小时前
无人机避障——大疆与Airsim中的角速度信息订阅获取
linux·动态规划·无人机