I'm trying to use NB to debug PHP application (Wordpress with a WP plugin I'm writing). I'm on Debian sid with NB10, OpenJDK 11 and PHP 7.3 FPM.

Here is my /etc/php/7.3/mods-available/xdebug.ini

zend_extension = /usr/lib/php/20180731/xdebug.so
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_mode = req
xdebug.remote_port = 9999

In NB the PHP Debug tab is configured accordingly.

Here are the steps i take to start the debug session:

# systemctl stop php7.3-fpm

then I click "Debug project" in NB, NB runs Chrome and "Waiting for Connection (xdebug)" starts spinning.

# systemctl start php7.3-fpm

then I open a new tab in Chrome and load the URL pointing to my local website.

At this point the Chrome tab keeps spinning, but NB keeps "Waiting For Connection (xdebug)" and never reaches the first breakpoint I set on the first code line of index.php. After a while Chrome reports a "504 Gateway Timeout" error signed off by Apache (which is configured as reverse proxy for PHP-FPM).

The very same configuration and the very same steps do work if I use Vistual Studio Code for Linux instead of NB, so I assume xdebug is correctly configured.

However I like NB more than VSC, and I'd prefer having NB working.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to