Title

vscode 配置运行 redis

vscode 配置运行redis

参考视频教程

https://github.com/wenfh2020/youtobe/blob/master/redis-debug.md

https://wenfh2020.com/2020/01/05/redis-gdb/

我的配置

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "make",
            "type": "shell",
            "command": "make"
        }
    ]
}

下面是launch.json

{
    "configurations": [
        {
            "name": "gcc build and debug redis",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/src/redis-server",
            "args": [
                "redis.conf"
            ],
            "stopAtEntry": true,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "preLaunchTask": "make"
        }
    ]
}




posted @ 2022-06-21 14:59  .geek  阅读(482)  评论(0编辑  收藏  举报