1 下载phpstorm
2 下载php安装包 i.e php-5.2.11.zip
如果报“缺少 msvcr110.dll”,则需要安装vcredist_x64.exe
3 配置phpstorm
3.1 把php_xdebug-2.2.5-5.2-vc9.dll重命名为php_xdebug.dll,然后放到php的etc目录下。
3.2 修改php.ini文件,在最后添加
[Xdebug]
zend_extension = E:\software\php\php5.2.11\ext\php_xdebug.dll
xdebug.remote_connect_back = On
xdebug.remote_port = 9001
xdebug.remote_enable = On
xdebug.auto_trace=Off
xdebug.collect_params=On
xdebug.collect_return=On
xdebug.profiler_enable=Off
3.3 在phpStorm中配置Interpreter,能够看到如下信息:
PHP version:5.5.14 Debugger: Xdebug 2.2.5
4 下载apache
4.1 配置httpd.conf,增加
LoadModule php5_module E:/software/php/php5.2.11/php5apache2.dll
PHPIniDir E:/software/php/php5.2.11
AddType application/x-httpd-php .php .html