Well to use something like "debugpy" It's the port mapping that just dosn't work straight out of the box, but needs custom settings inside my editor (and often times additional code inside the startup script) to get it working between the container and my local machine.