意见箱
恒创运营部门将仔细参阅您的意见和建议,必要时将通过预留邮箱与您保持联络。感谢您的支持!
意见/建议
提交建议

PHP调试配置

来源:恒创科技 编辑:恒创科技编辑部
2024-01-08 15:01:59


PHP调试配置步骤如下:

1.在谷歌浏览器扩展工具中添加Xdebug helper


PHP调试配置

2.在PHPStorm配置debug,把debug port 改成9010,

这里的9010是要和PHP配置文件php.ini配置的xdebug.remote_port的值保持一致

php.ini配置的xdebug如下:

[xdebug]
zend_extension="D:\php-5.6.5\ext\php_xdebug-2.2.7-5.6-vc11-x86_64.dll"
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9010
xdebug.idekey = PHPSTORM

3.在action设置断点,在浏览器和phpstorm开启调试模式

OK 了

上一篇: php实现RSA的加密解密和签名验签功能 下一篇: 如何学习PHP与mySQL,哪些基础知识要了解