In NetBeans you need to have the main PHP file open in the editor and the
tab selected then in the CSS window on the right, click on "open in
browser"

That works for me.

Best regards,
John



On Tue, 15 Jan 2019 at 10:05, Lucio <lu...@sulweb.org> wrote:

> 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: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

Reply via email to