1.下载xdebug插件。并在谷歌按照xdebug插件。参考:我的博文 安装xdebug-helper插件
2.在xdebug插件里配置idekey
3.下载php相对应的xdebug.dll,如何选,参考:博文
4.在php安装目录php.ini文件里配置
[xdebug]
zend_extension="D:\tool\apache-tomcat-7.0.92\php\php_xdebug-2.5.4-5.6-vc11-nts-x86_64.dll"
xdebug.remote_enable = On
;启用性能检测分析
xdebug.profiler_enable = On
;启用代码自动跟踪
xdebug.auto_trace=On
xdebug.profiler_enable_trigger = On
xdebug.profiler_output_name = cachegrind.out.%t.%p
;指定性能分析文件的存放目录
xdebug.profiler_output_dir ="D:\tool\apache-tomcat-7.0.92\php\debug"
xdebug.show_local_vars=0
xdebug.idekey=PHPSTORM
;配置端口和监听的域名
xdebug.remote_port=9000
xdebug.remote_host="127.0.0.1"
xdebug.remote_handler=dbgp