Reputation: 2497
I am trying to get Xdebug running on my MAMP Apache server https://xdebug.org/docs/install . I keep on getting this error when running the following command
xdebug_info();
Error
PHP Fatal error: Uncaught Error: Call to undefined function xdebug_info() in
Here are my configuration in the CORRECT php.ini file
zend_extension="/Applications/MAMP/bin/php/php7.4.12/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so"
xdebug.default_enable=1
xdebug.remote_enable=1
Upvotes: 2
Views: 6662
Reputation: 36774
xdebug_info();
is only available for Xdebug 3. If PHP says it can not find that function, then you're not running Xdebug 3 yet.
Upvotes: 14