nginx - Xdebug with PHPStorm and a Docker container -


setup: windows 10; docker running boot2docker on hyper-v; phpstorm 9

webserver on vm nginx. i've configured xdebug.ini php5-fpm as:

zend_extension=xdebug.so xdebug.remote_enable=on xdebug.remote_port=9000 xdebug.remote_connect_back=on xdebug.remote_handler=dbgp xdebug.profiler_enable=0 

if set breakpoint , reload page incoming connection xdebug in phpstorm:

incoming connection

i wonder there 1 file shown , not entire project bigger. if accept connection can debug first line not stopping on breakpoint , creates server entry looks like:

server what strange host empty. added server correct mapping got ignored.

so how xdebug stop on breakpoints?

what strange host empty.

phpstorm requires field filled uses recognize server entry (and therefore path mappings) use -- ide supports debugging same code base running on different domains / remote servers.

in particular case servername field / parameter of nginx configuration empty. can fix providing value in nginx config file.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -