PhpStorm断点调试配置
1.php安装xdebug扩展
[xdebug]
zend_extension=php_xdebug.dll
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9001
xdebug.idekey = PHPSTORM
phpinfo查看是否安装成功
2.PhpStorm配置
3.开启监听
4.运行调试
5.调试
F7 程序会一步一步往下走,碰到函数的话,会跳转到该函数
F8 一行一行的往下走,函数不会跳转
这两个功能是断点调试的最为实用和关键功能
直接从某个断点跳到另一行处断点,可以在进入断点后,在另一行断点处,点击断点,然后按下F9