Skip to content

Commit 9875ea0

Browse files
committed
vscode debugging config
1 parent f3e3a21 commit 9875ea0

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.local/
2+
23
.vscode/.zshcompdump
34
.vscode/.zshcompdump.zwc
5+
.idea/

.vscode/launch.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "(OSX) Launch Server",
6+
"type": "lldb",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/rust/target/debug/protoapp-server",
9+
"cwd": "${workspaceFolder}/rust/server",
10+
"args": ["--config", "${workspaceFolder}/rust/server/env.local.json"],
11+
"env": {
12+
"RUST_LOG": "debug"
13+
},
14+
"preLaunchTask": "rust: build workspace"
15+
}
16+
]
17+
}

.vscode/tasks.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "cargo",
6+
"command": "build",
7+
"problemMatcher": [
8+
"$rustc"
9+
],
10+
"group": "build",
11+
"label": "rust: build workspace",
12+
"options": {
13+
"cwd": "${workspaceFolder}/rust"
14+
}
15+
}
16+
]
17+
}

rust/server/env.local.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"http_bind_addr": "0.0.0.0:8888",
3+
"db": {
4+
"host": "localhost",
5+
"port": 5555,
6+
"dbname": "appdb",
7+
"user": "postgres",
8+
"password": "xyzzy"
9+
},
10+
"jwt_access_secret": "shouldbetrulysecretbutnotrightnow",
11+
"jwt_refresh_secret": "nottomentionthisone"
12+
}

0 commit comments

Comments
 (0)