搭建 VScode调试 redis环境

1
git clone https://github.com/huangz1990/redis-3.0-annotated.git
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{
    "version": "0.2.0",
    "configurations": [
        
        {
            "name": "(lldb) 启动",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/src/redis-server",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "lldb"
        }
    ]
}
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
{  
    "version":"2.0.0",  
    "tasks":[  
        {  
            "label":"Build",  
            "type":"shell",  
            "command":"make",  
            "args":[  
                "CFLAGS=\"-g -O0\""  
            ],  
            "problemMatcher":[  
  
            ],  
            "group":{  
                "kind":"build",  
                "isDefault":true  
            }  
        }  
    ]  
}