一、配置前说明:
1、phpStudy集成了XDebug扩展,所以不用单独下载XDebug。
2、打开XDebug扩展:其它选项菜单 > PHP扩展 > Xdebug
二、配置步骤:
1、查看phpStudy当前版本:
根据当前的版本 配置的xdebug.dll 的所在位置
2、修改php.ini文件:
打开php.ini 可以右键phpStudy 点击 -<打开配置文件>- 快速打开,
将前面的分号去除 检查路径是否正确
;zend_extension="D:\myworkVIP\phpstudybak\php\php-5.5.38\ext\php_xdebug.dll"
;ZJ_20170102 自定义XDebug
[XDebug]
zend_extension="D:\myworkVIP\phpstudy\php\php-5.5.38\ext\php_xdebug.dll"
xdebug.remote_enable = 1 ;开启远程调试
xdebug.remote_handler = "dbgp" ;用于zend studio远程调试的应用层通信协议
xdebug.idekey = PHPSTORM
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
3、选择PHP版本:
选择PHP版本
4、Debug端口:
Debug端口
5、IDEKEY:
IDEKEY
6、配置:
config
serviceConfig
7、查看配置:
这里写图片描述
三、调试:
1、开启调试:
debugon