phpstorm配置xdebug步骤

1.配置setting

phpstorm配置xdebug步骤_ide

 

 

 

phpstorm配置xdebug步骤_配置文件_02

 

 

 

 

phpstorm配置xdebug步骤_配置文件_03

 

 

打开php对应版本配置文件  这里我用的是php5.5

在文件最下面添加这个

zend_extension = D:\phpstudy\Extensions\php\php5.5.9nts\ext\php_xdebug-3.0.4-7.2-vc15-nts-x86_64.dll
xdebug.remote_enable =1
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_mode = req
xdebug.remote_port = 9000
xdebug.idekey=PHPSTORM

 

如图所示

phpstorm配置xdebug步骤_其他_04

 

 

 

 

php集成环境打开xdebug扩展

不确定自己是否安装了xdebug扩展,可以 phpinfo打印本地安装扩展信息

这里我用的是phpstudy

 

phpstorm配置xdebug步骤_配置文件_05

 

 

 

 

进入phpstorm页面 

点击右上角phpstorm配置xdebug步骤_配置文件_06,点击你想调试的文件,如图所示

 phpstorm配置xdebug步骤_php_07

 

 

点击下拉三角

 

点击 edit  configtion

 

 

 phpstorm配置xdebug步骤_php_08

 

选择你想调试的文件

phpstorm配置xdebug步骤_其他_09

 

 

打开右上角电话监听,绿色

phpstorm配置xdebug步骤_ide_10

 

 

3.开始调试

        开启点开电话图标监听

  1. 打好第一个断点,shift + F9就可以了

  2. 打好第一个断点,选中配置的debug,  按旁边的臭虫 按钮