phpstorm debug

复制自己的phpinfo粘贴到https://xdebug.org/wizard.php中, 会生成需要下载的版本, 

下载好之后放入php目录的ext文件夹中, 然后设置php.ini, 在最后加上

xdebug.idekey="PHPSTORM"
xdebug.remote_enable=on
xdebug.remote_autostart=on
xdebug.auto_trace=On
xdebug.scream=off
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir ="D:\phpStudy\PHPTutorial\tmp\xdebug"
xdebug.trace_output_dir ="D:\phpStudy\PHPTutorial\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"
xdebug.remote_port = 9001
zend_extension="D:\phpstudy\PHPTutorial\php\php-7.1.13-nts\ext\php_xdebug-2.7.2-7.1-vc14-nts.dll"

然后重启apache, 去设置phpstorm。

1.设置php

 

2.DBGp  proxy

3.services

4. 端口

设置完毕,点OK退出。

点菜单栏的Run>Edit Configurations… 在弹出的窗口中添加一个调试配置:

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值