Trouble Configuring Xdebug For Phpstorm On Xampp For Mac
Aug 28, 2013 - Downloading and installing Xdebug on your local machine (Mac OS X 10.6.6+. Debugging with Xdebug, as it can solve all of the problems above. Download the *.dll file from Xdebug.org, put it into the XAMPP folder. Set PhpStorm DBGp settings to your IDE key e.g. 'PHPSTORM' and port '9000'. PhpStorm offers a powerful debugger in which breakpoints can be set and variables can be inspected at runtime. For more information on using PhpStorm's debugger, have a look at any of the following articles: Zero-configuration Web Application Debugging with Xdebug and PhpStorm; Xdebug Installation Guide; Zend Debugger Installation Guide.
I am using xampp5.6.15 on OS 10.11. I was following this to install xDebug.
My 'tailored installation instruction' is as follows: In this instruction, it doesn't mention where to put the downloaded tgz file, so I just left it where it was in the downloads folder, after I ran phpize, the output is like this: grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zendmodules.h: No such file or directory grep: /usr/include/php/Zend/zendextensions.h: No such file or directory Configuring for: PHP Api Version: Zend Module Api No: Zend Extension Api No: Cannot find autoconf. Please check your autoconf installation and the $PHPAUTOCONF environment variable. Then, rerun this script. I guess it is because the xdebug folder is not in the right place, I've tried moving it to xamppfiles/ and xamppfiles/modules/ and some other places but none of the works. So what is wrong?
Where should I place the folder? I'm not sure if this comment is going to help you, but, if you're trying to install xDebug extension, basically the steps are: 1: Download the xdebug.so file for your php version. 2: Place the xdebug.so file in your extensions folder. 3: Change a configuration in your php.ini file, something regarding to zend extensions. In your case you must figure out where's your php.ini file, where is its extensions folder and what is your php version.
Remember that you can have a php.ini for cli and another for apache, to avoid confusions, run the function phpinfo; in a php file, not via console – May 21 '16 at 23:24. Maybe you can solve the problem like: 1. Cd xdebug-2.5.4 2.
Trouble Configuring Xdebug For Phpstorm On Xampp For Mac
/Applications/XAMPP/xamppfiles/bin/phpize If you do not have home-brew please install it: 3. Brew install autoconf 4./configure -enable-xdebug -with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config Don't forget to run 'make test': 5. Cp modules/xdebug.so /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012 Edit /Applications/XAMPP/xamppfiles/etc/php.ini: 8. Vi /Applications/XAMPP/xamppfiles/etc/php.ini 9.And add the line: zendextension = /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so 10.Restart your webserver.
My hope that this approach be helpful to you. I just was struggling with the same problem and got the below message when I tried to run phpize to install xdebug. The solution (and problem) in my case was that I just had not installed the XAMPP developer files! When you run the XAMPP installer, you can check or uncheck this option.
If you did not originally check it, just run the installer again, it allows you to just add the developer files. And just to be complete: I also had an issue with the wrong version of php / phpize (the older OSX version was used), so I also had to set the path to the XAMPP versions of php, phpize etc. Are stored: export PATH=/Applications/XAMPP/xamppfiles/bin/:$PATH Afterwards, everything was fine, and I could just follow the steps the XDEBUG wizard gave me: This was the original error message I got by runnin phpize: grep: /Applications/XAMPP/xamppfiles/include/php/main/php.h: No such file or directory grep: /Applications/XAMPP/xamppfiles/include/php/Zend/zendmodules.h: No such file or directory grep: /Applications/XAMPP/xamppfiles/include/php/Zend/zendextensions.h: No such file or directory Configuring for: PHP Api Version: Zend Module Api No: Zend Extension Api No.