Remote Debugging with XDebug from inside a Docker Container does not work

后端 未结 4 1537
悲哀的现实
悲哀的现实 2021-02-07 04:31

I\'m trying to setup a dockered AMP environment and can\'t get the remote debugger working. My setup is as follows:

I have a database container running mysql which is wo

4条回答
  •  忘了有多久
    2021-02-07 05:35

    For me on a PHP, NGINX Docker environment using sublime, I got it to work with these settings:

    xdebug.remote_enable = 1
    xdebug.remote_mode = req
    xdebug.remote_port = 9001
    xdebug.remote_connect_back=0
    xdebug.remote_host=host.docker.internal
    

    The one that took me forever to figure out was to set the remote_host to host.docker.internal.

提交回复
热议问题