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"
}
]
}