2024-12-25 17:16:05 -03:00
|
|
|
{
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
|
|
|
{
|
|
|
|
"type": "lldb",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Debug GB API Server",
|
|
|
|
"cargo": {
|
2024-12-26 10:09:39 -03:00
|
|
|
"args": [
|
|
|
|
"build",
|
|
|
|
"--bin=gb-api"
|
|
|
|
],
|
2024-12-25 17:16:05 -03:00
|
|
|
"filter": {
|
|
|
|
"name": "gb-api",
|
|
|
|
"kind": "bin"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"args": [],
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
"env": {
|
|
|
|
"RUST_LOG": "debug",
|
2024-12-25 21:28:16 -03:00
|
|
|
"DATABASE_URL": "postgres://gbuser:gbpassword@localhost:5432/generalbots",
|
2024-12-25 17:16:05 -03:00
|
|
|
"REDIS_URL": "redis://localhost:6379"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "lldb",
|
|
|
|
"request": "launch",
|
2024-12-26 10:09:39 -03:00
|
|
|
"name": "Debug unit tests in executable 'gb-api'",
|
2024-12-25 17:16:05 -03:00
|
|
|
"cargo": {
|
2024-12-26 10:09:39 -03:00
|
|
|
"args": [
|
|
|
|
"test",
|
|
|
|
"--no-run",
|
|
|
|
"--lib",
|
|
|
|
"--package=gb-api"
|
|
|
|
],
|
2024-12-25 17:16:05 -03:00
|
|
|
"filter": {
|
|
|
|
"name": "gb-api",
|
2024-12-26 10:09:39 -03:00
|
|
|
"kind": "bin"
|
2024-12-25 17:16:05 -03:00
|
|
|
}
|
|
|
|
},
|
2024-12-26 10:09:39 -03:00
|
|
|
"args": [
|
|
|
|
"--test-threads=1"
|
|
|
|
],
|
2024-12-25 17:16:05 -03:00
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "lldb",
|
|
|
|
"request": "launch",
|
|
|
|
"name": "Debug Integration Tests",
|
|
|
|
"cargo": {
|
2024-12-26 10:09:39 -03:00
|
|
|
"args": [
|
|
|
|
"test",
|
|
|
|
"--no-run",
|
|
|
|
"--lib",
|
|
|
|
"--package=gb-api"
|
|
|
|
],
|
2024-12-25 17:16:05 -03:00
|
|
|
"filter": {
|
|
|
|
"name": "integration",
|
|
|
|
"kind": "test"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"args": [],
|
|
|
|
"cwd": "${workspaceFolder}"
|
2024-12-26 10:09:39 -03:00
|
|
|
},
|
2024-12-25 17:16:05 -03:00
|
|
|
],
|
|
|
|
"compounds": [
|
|
|
|
{
|
|
|
|
"name": "API Server + Debug",
|
2024-12-26 10:09:39 -03:00
|
|
|
"configurations": [
|
|
|
|
"Debug GB API Server"
|
|
|
|
]
|
2024-12-25 17:16:05 -03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|