Skip to content

Commit

Permalink
feat: add debugging for ts-backend running
Browse files Browse the repository at this point in the history
  • Loading branch information
ajhenry committed Jan 30, 2024
1 parent 3f3fad3 commit 524e6b4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 56 deletions.
38 changes: 23 additions & 15 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch metrics (local)",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/backend/cmd/main.go",
"envFile": "${workspaceFolder}/dev.vscode.env",
},
]
}
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch metrics (local)",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/backend/cmd/main.go",
"envFile": "${workspaceFolder}/dev.vscode.env"
},
{
"name": "Next.js: debug metrics",
"type": "node-terminal",
"request": "launch",
"cwd": "${workspaceFolder}/ts-backend",
"command": "npm run start",
"envFile": "${workspaceFolder}/ts-backend/.env"
}
]
}
1 change: 1 addition & 0 deletions ts-backend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GRAPHQL_TOKEN=your_token
41 changes: 0 additions & 41 deletions ts-backend/.vscode/settings.json

This file was deleted.

0 comments on commit 524e6b4

Please sign in to comment.