debugging a php built-in webserver session
I cannot figure out how to debug a built-in webserver session. I've managed to start one and get my site running, but I can't get it to work with xDebug.
Also, I haven't managed to get xDebug working with a PHP web application config either.... It works very well in Netbeans and xdebug is enabled, so I think it just me not knowning how to configure phpstorm
I've followed intructions given in this link: https://www.jetbrains.com/phpstorm/webhelp/php-built-in-web-server.html but it doesn't say how to get debugging working in built-in web server...
so far I've created a Built-in configuration running on localhost:8000 and I run it. Then I launch a web application conf, which has xdebug set as debugger and my website shows up with the following url: http://localhost:8000/web/app_dev.php/accueil?XDEBUG_SESSION_START=19734
but then breakpoints are never hit....
any help would be appreciated
thanks
Please sign in to leave a comment.
I have made some progress on this.
Now I'm able to debug, but only if I choose a Web Application configuration AND the source code is located in /var/www/myproject, which is the default location for Apache. So if my project is in /home/me/projects, then it won't debug.
Also, I can only debug the start page of my application, because ?XDEBUG_SESSION_START=14077 is added to the URL. However if I navigate to another page of the application, this query parameter goes away and breakpoints are no longer hit.
And lastly, it is sooooooooo slow !!!! It's such a pain to debug it. There must be something I'm doing wrong. Currently debugging is the only thing that holds me from uninstalling Netbeans.....
why is that ?