Install the PHP Debug Adapter for Visual Studio Code.Īdd XDEBUG_SESSION_START=PHPSTORM as query parameter to the url, e.g.Įnter cmd: Known IssuesPlease enable JavaScript to view the comments powered by Disqus.Change the Netbeans debugging options: Screenshot.
#Phpstorm vagrant xdebug generator
Now we’re running PHP and fpm in a container, so we need to inject the configuration in with docker-compose. Before Docker, Xdebug was relatively straightforward to configure on a platform, in that it was a new set of the php.ini parameters – you’d either just edit the existing php.ini, or load in a custom ini or override. So, make sure it contains the following settings: zendextension=xdebug.so xdebug.remoteenable=1 xdebug.remoteconnectback = 1 xdebug.remoteport = 9000 xdebug.maxnestinglevel = 250. Xdebug needs to be remote started when using it with PhpStorm and the default Homestead configuration doesn’t reflect this.