下载 xdebug & PHP.ini 配置
https://blog.csdn.net/github_38336924/article/details/90024015
具体下载看上面链接文章(注意:下载低版本的xdebug,高版本容易报错)
刚开始我用了3.0.4的版本死活不行,然后换了个旧点的搞定了。
或者:
PHP.ini 配置如下
[XDebug] zend_extension="D:\Software\PHPStudy\PHPTutorial\PHP\PHP-7.2.1-nts\ext\PHP_xdebug-2.7.2-7.2-vc15-nts.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir="D:\Software\PHPStudy\PHPTutorial\tmp\xdebug" xdebug.trace_output_dir="D:\Software\PHPStudy\PHPTutorial\tmp\xdebug" xdebug.profiler_output_name = "cache.out.%t-%s" xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.remote_port = 9002 xdebug.idekey= PHPSTORM
PHPstorm 配置
设置PHP版本
端口配置
DBGp 配置
Servers 配置
验证一下 虽然报错了一个 但是不影响
测试
debug
浏览器的debug插件自己下载
500超时
IPCConnectTimeout 3000 IPCCommTimeout 3000
来源:https://blog.csdn.net/kuuhh/article/details/119038345
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。