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:
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:
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
Post a Comment