Xdebug with PHPStorm and a Docker container

后端 未结 1 374
没有蜡笔的小新
没有蜡笔的小新 2021-01-14 03:15

Setup: Windows 10; Docker running with Boot2Docker on Hyper-V; PHPStorm 9

Webserver on the VM is Nginx. I\'ve configured the xdebug.ini for php5-fpm as:



        
相关标签:
1条回答
  • 2021-01-14 03:57

    What is very strange that host is empty.

    PhpStorm requires this field to be filled as it uses this to recognize what server entry (and therefore path mappings) to use -- IDE supports debugging the same code base running on different domains / remote servers.

    In this particular case the servername field / parameter of your nginx configuration is empty. You can fix this by providing some value in nginx config file.

    0 讨论(0)
提交回复
热议问题