From 77b57247eaa830e8712bcdd426a68583c170d0c1 Mon Sep 17 00:00:00 2001 From: Fancy Zhang Date: Sat, 27 Jun 2020 10:13:04 +0800 Subject: [PATCH] commit add .vscode things --- .gitignore | 1 - .vscode/gdb-root | 2 ++ .vscode/launch.json | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100755 .vscode/gdb-root create mode 100644 .vscode/launch.json diff --git a/.gitignore b/.gitignore index 693d15b..a5231de 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ build .directory -.vscode .clangd v2ray_config/proxy v2ray_config/06_outbounds_proxy.json diff --git a/.vscode/gdb-root b/.vscode/gdb-root new file mode 100755 index 0000000..5f7edad --- /dev/null +++ b/.vscode/gdb-root @@ -0,0 +1,2 @@ +#!/bin/sh +exec sudo -E /usr/bin/gdb "$@" \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4684d96 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,23 @@ +{ + "configurations": [ + { + "name": "(gdb) cgproxyd", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build/src/cgproxy", + "args": ["--daemon", "--debug", "--execsnoop"], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "${workspaceFolder}/.vscode/gdb-root", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + }] +} \ No newline at end of file