Xdebug is installed, but not showing up on phpinfo

Viewed 1150

I'm trying to install xdebug on my ubuntu linux system.

Correct .so file, make install everything is correct, just maybe the php.ini configuration?

I use the installation wizard.

Installation Wizard Step by Step

I am at step 9, added the zend_extension on my INI file. Added Zend Extension Command on other INI file.

when i PHP_INFO(), xdebug just does not appear in the list.

I googled around and seems other people php.ini file have this

xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/tmp

but mine does not?

So i added those into my php7.4/cli/php.ini still does not show on my phpinfo?

I go to the terminal and type php info xdebug seems there. xdebug support => enabled Version => 2.9.6

but i created a testpage.php and put phpinfo();

xdebug does not appear in the page?

Am i missing something?

1 Answers

Yes you need to update your php.ini file. Below is the code lines that i added in my php.ini file.

[XDebug]
zend_extension = "path of you extension example /usr/lib/php/xdebub.so"
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"

Must restart your server after any changes in php.ini file.

Related