Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPStorm 10, XAMMP, Xdebug/ZendDebugger

Over the past few days I have been trying to get debugging working with PHPStorm 10 on my local machine (Mac OS). I have tried both ZendDebugger and xdebug.

I seem to be hitting the same problem with both. I setup my interpreter and it says that the correct Debugger is installed on XAMPP but then when I run the "Validate Debugger Configuration on Web Server" tool in PHPStorm it gives the error: No debug extension is loaded.

The following is my php.ini file settings for Xdebug:

[Xdebug]
zend_extension=/Applications/XAMPP/etc/xdebug.so
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/Applications/XAMPP/xamppfiles/htdocs/sam-files/
xdebug.idekey=PHPStorm

I have also been using the following recourses online:

https://www.jetbrains.com/phpstorm/help/configuring-xdebug.html

https://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm

Any guidance on this would be great.

Thanks,

Sam

like image 838
Sam Roberts Avatar asked Mar 15 '26 19:03

Sam Roberts


1 Answers

Check if the correct extension are loaded using the following command in the PHPStorm terminal

php -i | grep xdebug

You might want to check to make sure you're loading the correct php.ini file as well, by using

php -i | grep ini
like image 54
terrorfall Avatar answered Mar 18 '26 09:03

terrorfall



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!