Skip to content

Commit

Permalink
added vscode launch config
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoLisin committed May 15, 2023
1 parent 053fb60 commit 0c17a60
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*.gif

__pycache__
.vscode
.devcontainer
debug.env
secret_debug.env
Expand Down
43 changes: 43 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Local Debug",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/supervisely/serve/src/main.py",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}:${PYTHONPATH}",
"LOG_LEVEL": "DEBUG",
}
},
{
"name": "Advanced Debug in Supervisely platform",
"type": "python",
"request": "launch",
"module": "uvicorn",
"args": [
"main:pips.app",
"--app-dir",
"./supervisely/serve/src",
"--host",
"0.0.0.0",
"--port",
"8000",
"--ws",
"websockets"
],
"jinja": true,
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}/supervisely/serve/src:${PYTHONPATH}",
"LOG_LEVEL": "DEBUG",
"ENV": "production",
"DEBUG_WITH_SLY_NET": "1",
"SLY_APP_DATA_DIR": "${workspaceFolder}/app_data"
}
}
]
}

0 comments on commit 0c17a60

Please sign in to comment.