Closed bhrutledge closed 3 weeks ago
You may want to override the default command/entrypoint, e.g. with sleep infinity
. This would make the container do nothing when dropping you into the started container. Then you can start debugging using the vscode laucher.
Thanks for your reply @ridoo, ill close the issue for now.
I'm new to Dev Containers, so it's very possible I'm missing something.
I've created a
devcontainer.json
for running the Django service defined in my existingdocker-compose.yml
. That's working fine; I can reopen in the container and use my app. I've also added alaunch.json
using the standard "Django" debugging configuration. Expand the "Details" below to see those files.When I run "Start Debugging", I get the following output in the terminal:
I'm guessing this is because
manage.py
is already running on port 8001, which makes sense. However, I can't find any documentation for how to start (or restart) the process (or container) in "debug mode" instead.