php.ini xdebug 扩展,phpstudy环境下配置xdebug

一、PHPStudy自带xdebug扩展,只需要打开即可

开启xdebug扩展

二、php.ini配置(配置完成使用php.exe -m可查看xdebug是否启动)

``

[XDebug]

xdebug.profiler_append = 0

xdebug.profiler_enable = 1

xdebug.profiler_enable_trigger = 0

xdebug.profiler_output_dir ="D:\phpStudy\tmp\xdebug"

xdebug.trace_output_dir ="D:\phpStudy\tmp\xdebug"

xdebug.profiler_output_name = "cache.out.%t-%s"

xdebug.remote_enable = 1

xdebug.remote_handler = "dbgp"

xdebug.remote_host = "127.0.0.1"

zend_extension="D:\phpStudy\php54n\ext\xdebug.dll"

xdebug.remote_port = 9000

xdebug.remote_mode = "req"

xdebug.idekey = PHPSTORM

三、下载并安装浏览器xdebug工具:如chrome的扩展

http://www.chromein.com/public/crx/eadndfjplgieldjbigjakmdgkmoaaaoc/chromein.com_ext_11294.crx

插件设置

四、phpStorm设置;

(1).File>Settings>Languages&Framework>PHP>Servers:name填localhost,host填localhost(或127.0.0.1),port填80,debugger选XDebug

(2).File>Settings>Languages&Framework>PHP>Debug>XDebug:port填9000

(3).File>Settings>Languages&Framework>PHP>Debug>DBGp Proxy:IDE key 填 PHPSTORM,host 填localhost(或127.0.0.1),port 填80

(4).File>Settings>Languages&Framework>PHP>选着自己的PHP路径

五、在phpStorm里打开监听,就是一个电话一样的按钮

六,访问localhost,打开xdebug插件(chrome效果如下)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值