phpstorm 8.0.3版本

1.本身自带xdebug插件

2.在xampp的php.ini中最后中添加(如果有[XDebug]配置替换)

[XDebug]
zend_extension = "D:\Program Files\xampp\php\ext\php_xdebug.dll"
;xdebug.profiler_append = 0
;xdebug.profiler_enable = 1
;xdebug.profiler_enable_trigger = 0
;xdebug.profiler_output_dir = "D:\Program Files\xampp\tmp"
;xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = On
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
;xdebug.trace_output_dir = "D:\Program Files\xampp\tmp"

 

3.然后再配置 phpstorm  里的  

php--xdebug设置 

4.新建一个调试 

5.设置一下 服务器路径和文件名

然后可以随意地打断点,按那个小虫子按钮来调试程序了

posted on 2016-04-21 13:43  枫之撒旦  阅读(283)  评论(0编辑  收藏  举报