Skip to content

Commit b3ba940

Browse files
committed
test: add .vscode/launch.json with the "Attach to Postgres (gdb)" configuration
1 parent 19380d7 commit b3ba940

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jniLibs/
4141
*.dex
4242

4343
# IDE
44-
.vscode
4544
.idea/
4645
*.iml
4746
*.swp

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Attach to Postgres (gdb)",
6+
"type": "cppdbg",
7+
"request": "attach",
8+
"program": "/usr/lib/postgresql/16/bin/postgres",
9+
"processId": "${command:pickProcess}",
10+
"MIMode": "gdb",
11+
"miDebuggerPath": "/usr/bin/gdb",
12+
"stopAtEntry": false,
13+
"setupCommands": [
14+
{
15+
"description": "Enable pretty-printing for gdb",
16+
"text": "-enable-pretty-printing",
17+
"ignoreFailures": true
18+
}
19+
]
20+
}
21+
]
22+
}

0 commit comments

Comments
 (0)