环境:win10+phpstorm2022+phpstudy8+lnmp
php.ini配置文档
[Xdebug]zend_extension=D:/phpstudy_pro/Extensions/php/php7.3.9nts/ext/php_xdebug.dllxdebug.idekey=phpstormxdebug.remote_enable = Onxdebug.remote_host=localhost;xdebug.remote_port 默认值为9000,这里需要跟phpstorm配置一致,下面有说明xdebug.remote_port=9000xdebug.remote_handler=dbgpxdebug.auto_trace = On
刷新浏览器网页,出现以下对勾,表示配置成功
按F7,程序会一步一步往下走,碰到函数的话,会跳转到该函数。
按F8,在当前代码页一行一行的往下走,碰到函数不会跳转。
按F9,从某个断点跳到另一行处断点。