phpstorm 断点调试

1、设置php的xdebug

在php.ini中设置

[XDebug]
xdebug.profiler_output_dir="H:phystudyPHPTutorial	mpxdebug"
xdebug.trace_output_dir="H:phystudyPHPTutorial	mpxdebug"
zend_extension="H:phystudyPHPTutorialphpphp-5.4.45extphp_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)

第一个是一步一步。

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

原文地址:https://www.cnblogs.com/gaidalou/p/10576894.html