added tele debug config (wip)
This commit is contained in:
12
.vscode/launch.json
vendored
12
.vscode/launch.json
vendored
@ -10,6 +10,18 @@
|
|||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "docker-run: debug",
|
"preLaunchTask": "docker-run: debug",
|
||||||
"platform": "node"
|
"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
8
.vscode/tasks.json
vendored
@ -41,6 +41,12 @@
|
|||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
"label": "npm: start",
|
"label": "npm: start",
|
||||||
"detail": "node /app/web/server.js"
|
"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": []
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -75,5 +75,5 @@ EXPOSE 8080 8081
|
|||||||
|
|
||||||
# CMD ["npm", "start"]
|
# CMD ["npm", "start"]
|
||||||
|
|
||||||
# CMD ["npm", "run", "start:demo"]
|
CMD ["npm", "run", "start:demo"]
|
||||||
CMD ["npm", "run", "start:tele"]
|
#CMD ["npm", "run", "start:tele"]
|
Reference in New Issue
Block a user