PhpStrom--xdebug配置步骤

xdebug使用方法

第一步:将xdebug拓展放在php/etc目录下  

第二步:配置拓展,在php/php.ini中配置xdebug配置代码如下:

PhpStrom--xdebug配置步骤

配置代码如下:

[xdebug]
zend_extension = "E:\work\xampp\php\ext\php_xdebug.dll"
xdebug.idekey=PhpStorm
xdebug.remote_enable = On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp


第三步:编辑器左侧找到如下文件,右键

PhpStrom--xdebug配置步骤

 找到该项,双击打开

 PhpStrom--xdebug配置步骤

第四步:点击左侧加号:新建

PhpStrom--xdebug配置步骤 

第五步:路径设置:设置路径为php.ini的路径

 PhpStrom--xdebug配置步骤

第六步:保存就完成了设置。

第七步:右上角,找到如下,选择Edit Configurations ,点开

PhpStrom--xdebug配置步骤

第八步:点击左上角加号,点击PHP HTTP Request ,再点击OK

PhpStrom--xdebug配置步骤

第九步 : 自定义Unnamed ,再点击“…”设置server

PhpStrom--xdebug配置步骤

第十步 : 设置servers,Name自定义Name项,Host项要填写项目根目录,点击OK

PhpStrom--xdebug配置步骤

第十一步:选中server, 填写URL项,URL是想要调试的方法

PhpStrom--xdebug配置步骤