diff --git a/.gitignore b/.gitignore index 871aeb5..7f8dcfc 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ *.gif __pycache__ -.vscode .devcontainer debug.env secret_debug.env diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..d79ca26 --- /dev/null +++ b/.vscode/launch.json @@ -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" + } + } + ] +} \ No newline at end of file