Skip to content

Commit

Permalink
Add debug configurations for vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
zeerayne committed Dec 9, 2024
1 parent 0a010f7 commit b9d50e3
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug: Remote Attach",
"type": "debugpy",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5678
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
]
},
{
"name": "Debug: pytest",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"args": [
"--spec"
]
}
]
}
18 changes: 18 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Run `docker compose up` with debug config",
"type": "docker-compose",
"dockerCompose": {
"up": {
"detached": false,
"build": false
},
"files": [
"${workspaceFolder}/docker-compose.debug.yml"
]
}
}
]
}

0 comments on commit b9d50e3

Please sign in to comment.