phpstorm 调试配置环境

1 篇文章 0 订阅
1 篇文章 0 订阅

1、下载xdebug模块
注意:带"ts"是线程安全的意思,"nts"的他没有标示,这个要对应你的php版本看看你的php版本是nts还是ts的。

下载地址:

https://xdebug.org/download.php

下载完毕了之后将这个文件放在

C:\phpStudy\PHPTutorial\php\php-7.2.1-nts\ext\php_xdebug-2.6.0-7.2-vc15-nts.dll

2.修改php.ini文件

[XDebug]
zend_extension=php_xdebug-2.6.0-7.2-vc15-nts.dll
xdebug.remote_enable = On  
xdebug.remote_handler = dbgp     
xdebug.remote_host= localhost  
xdebug.remote_port = 9000  
xdebug.idekey = PHPSTORM
xdebug.profiler_output_dir="C:\phpStudy\PHPTutorial\tmp\xdebug"
xdebug.trace_output_dir="C:\phpStudy\PHPTutorial\tmp\xdebug"

3.配置phpstrom,看图

5.在你的chrome安装一个插件,如图:

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值