PHPStrom 之 Xdebug
首先下载xdebug 下载的是一个dll文件
配置php.ini
安装Xdebug的最后一步就是配置php.ini文件,打开C:\php目录下的php.ini配置文件,在末尾添加
[xdebug]
zend_extension = "D:/php/ext/php_xdebug-2.4.0-5.6-vc11-x86_64.dll"
xdebug.idekey=PhpStorm
xdebug.remote_enable = On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
重启apache phpinfo() 可以看到
这一栏很长,要注意下面的表格中,xdebug.idekey 这一行内容
接下俩配置PHPstrom
打上断点 , 然后shift + f9 或者 小虫子启动
启动之后进入要执行的页面做相应处理 ,phpstrom就出现一下结果