phpstorm 断点调试

1、设置php的xdebug

在php.ini中设置

[XDebug]
xdebug.profiler_output_dir="H:\phystudy\PHPTutorial\tmp\xdebug"
xdebug.trace_output_dir="H:\phystudy\PHPTutorial\tmp\xdebug"
zend_extension="H:\phystudy\PHPTutorial\php\php-5.4.45\ext\php_xdebug.dll"

xdebug.remote_enable = On  

xdebug.remote_handler = dbgp     

xdebug.remote_host= localhost  

xdebug.remote_port = 9000  

xdebug.idekey = PHPSTORM

路径根据自己的设置下 端口是phpstorm设置的见下图(2) 保持一致。

xdebug.idekey = PHPSTORM见图(2)

2、phpstrom设置

(1)

(2)

(3)

(4)

(5)

 

 

 

第一个是一步一步。

第二个是一个文件一个文件跳。

 

posted @ 2019-03-22 10:55  盖大楼  阅读(144)  评论(0编辑  收藏  举报