1. Download the address http://www.xdebug.org/download.php, download the source version of the
TAR-ZXVF xdebug-2.4.0rc3.tgz
cd xdebug-2.4.0rc3/
use Whereis phpize to view the path phpize whereis
Execute phpize make make install using the verbose path
After installation, prompt installation directory:
Installing Shared extensions:/usr/local/cellar/php55/5.5.38/lib/php/extensions/no-debug-zts-20121212/
Then add in php.ini:
[Xdebug]
Zend_extension=xdebug.so
Xdebug.remote_enable = On
; XDEBUG.REMOTE_HANDLER=DBGP
Xdebug.remote_host= "127.0.0.1"
xdebug.remote_port=9111
xdebug.profiler_enable = 1
Xdebug.profiler_enable_trigger = Off
Xdebug.profiler_output_name = cachegrind.out.%t.%p
Xdebug.remote_autostart = On
Restart Apache,
sudo apachectl restart
Open Phpstorm,file->default Preferences->languages & Frameworks
PHP Language level: I'm 5.5 here.
Default interpreters: Create a new PHP path to write your PHP address
DBGP Proxy settings:
Next configure server, I do not have server in this version. Set in Run->debug configurations.
Add Server
The next step is to debug.