I want to be able to debug docker containers in Visual Studio by specifying Docker profile in launchSettings.json. However, launchSettings.json provide only option to set httpPort and httpsPort (which are mappings from 80 and 443 to custom ports outside of the container).
I have a TCP server application (TCPListener) that listens on custom port (let's say, 9999). I want to expose this port outside of the container during debugging. Can I do this somehow (by editing launchSettings.json or some other configuration) or I'm stuck with running Docker image separately and attaching to it somehow?