PHPStrom在PHPStudy的环境下运行xDeBug断点调试

本文详细介绍如何在PHPStudy中启用Xdebug进行代码性能剖析及远程调试,包括配置php.ini文件,设置Xdebug参数,以及在Chrome浏览器中安装并配置Xdebug扩展。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

@开启phpstudy的xdebug

 

@配置php.ini

    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"

    zend_extension="D:\phpStudy\PHPTutorial\php\php-7.0.12-nts\ext\php_xdebug.dll"

    xdebug.remote_port = 9100

    xdebug.remote_mode = "req"

    xdebug.idekey = PHPSTORM

   

@Chrome浏览器安装xdebug扩展

    #idekey,修改为phpstorm

    #白名单(Domain filter),将localhost和127.0.0.1配置进来。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值