plerecipes.blogg.se

Download xdebug docker
Download xdebug docker








Based on that configuration The server tries to connect with Your local computer on the given IP and port number.

download xdebug docker

  • The server checks a configuration of the Xdebug to find out the connection details.
  • The server tries to connect to your debugger via DBGP protocol.
  • You run PHP script or make a request to a website.
  • Your local computer starts listening on 9000 port (by default).
  • You start DBGP session in your debugger (Vim or some IDE like PHPStorm).
  • While not beeing a Xdebug nor DBGP protocol expert I see this architecture/communication as follows:

    download xdebug docker

    So there is no need to publish it, your computer will never try to connect to the Xdebug via 9000 port. Docker run -p 9000:9000 your_xdebug_server_imageīecause Xdebug (which is running on your container/server) doesn't listen on that port, it just sends some data to that port (to your computer on which you are working).










    Download xdebug docker