您的位置:首页 > 编程语言 > PHP开发

PHP调试配置

2016-01-13 15:51 471 查看
PHP调试配置步骤如下:

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

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 了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: