added tele debug config (wip)

This commit is contained in:
Dobromir Popov
2023-12-19 22:07:11 +02:00
parent 9435650d4f
commit 2a947d6c7c
3 changed files with 21 additions and 3 deletions

12
.vscode/launch.json vendored
View File

@ -10,6 +10,18 @@
"request": "launch",
"preLaunchTask": "docker-run: debug",
"platform": "node"
},
{
"name": "Docker Python Launch",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/agent-py-bot/agent.py",
"console": "integratedTerminal",
"pythonPath": "${command:python.interpreterPath}", // Assumes Python extension is installed
"preLaunchTask": "docker-run: python-debug", // You may need to create this task
"env": {
"PYTHONUNBUFFERED": "1"
}
}
]
}

8
.vscode/tasks.json vendored
View File

@ -41,6 +41,12 @@
"problemMatcher": [],
"label": "npm: start",
"detail": "node /app/web/server.js"
}
},
{
"label": "python-debug",
"type": "shell",
"command": "docker exec -w /workspace -it my-python-container /bin/bash -c 'source activate py && python -m debugpy --listen 0.0.0.0:5678 agent-py-bot/agent.py'",
"problemMatcher": []
}
]
}

View File

@ -75,5 +75,5 @@ EXPOSE 8080 8081
# CMD ["npm", "start"]
# CMD ["npm", "run", "start:demo"]
CMD ["npm", "run", "start:tele"]
CMD ["npm", "run", "start:demo"]
#CMD ["npm", "run", "start:tele"]