Useful informations:
- Ubuntu 19.04 x86_64
- PHP 7.2
- Xampp for linux 7.3.4
- Netbeans 8.2
- Xdebug 2.7.1
I installed with success PHP-cli, netbeans and xampp for linux on my brand new Ubuntu 19.04 installation.
After that I uploaded my /opt/lampp/etc/php.ini
file on https://xdebug.org/wizard.php and I followed scrupulously the instructions.
I copied the generated xdebug.so
in /opt/lampp/lib/php/extensions/no-debug-non-zts-20180731
and then I edited the /opt/lampp/etc/php.ini
adding those lines:
[xdebug]
zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20180731/xdebug.so
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_log = /tmp/xdebug_remote.log
xdebug.remote_mode = req
xdebug.remote_port = 9000
I went to http://localhost/dashboard/phpinfo.php , here I can see the Zend Engine logo but in the "configuration" section there isn't any xdebug section.
In my local terminal i executed those commands php -m
and php -v
. The first returned a list of modules among which xdebug was not included, the second returned a the php version and, again, xdebug was not included.
After this I decided to add the [xdebug]
section also in the /etc/php/7.2/cli/php.ini
and then the php -m
and php -v
commands have returned xdebug in loaded modules and in the version list.
Anyway the http://localhost/dashboard/phpinfo.php refuses to list xdebug among the active modules and if I try to start a debug session netbeans hangs-on "waiting for connection xdebug".
- I checked two, three, four.... times the zend_extension path and is corrected
- I restarted multiple times lampp, apache, netbeans and the pc
- I tried multiple ports 9000, 9001, 9002 ....
- The php and xdebug versions are compatible
Here are some similar problems: xdebug in phpinfo() is not showing , No xdebug in phpinfo() , Xdebug installed but does not display in Phpinfo for Xampp . Obviously, when I could, I tried these solutions, but without success.