Discussed in #19200
Originally posted by zljubisic May 27, 2022
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?
Discussed in #19200
Originally posted by zljubisic May 27, 2022
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?