Replies: 1 comment 6 replies
-
You want to attach to the running process in the container. See https://code.visualstudio.com/docs/python/debugging for the docs on how to do that. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using VS Code in windows 10 to connect to local HyperV Centos 7 (Connect to host...).
Now, I am in Centos and I would like to set break point in running docker (swarm service) container.
In order to do so I can "Remote-Containers: Attach to Running Container...", but in that case I will just enter the container. I don't see the option to attach to the running process inside of container (set by docker entrypoint).
I see "Debug: Attach to Node Process" so I hope something like this exists for python processes as well.
Let's say that I have container with fastapi or celery running process inside of it.
Can I somehow attach to their processes and set break point in order to see what is going on?
Beta Was this translation helpful? Give feedback.
All reactions