配置Phpstorm+Xdebug调试环境

admin 2021年10月25日07:40:36评论74 views字数 608阅读2分1秒阅读模式

这篇文章来自公众号的留言

配置Phpstorm+Xdebug调试环境

环境

  • Windows 10

  • PhpStudy 2016

  • Phpstorm 2021.1.1

  • Php 5.5.38

  • Firefox + Xdebug-ext


步骤

step1 找到phpstudy自带的xdebug路径

配置Phpstorm+Xdebug调试环境


step2 配置php.ini

配置Phpstorm+Xdebug调试环境

详细配置

[XDebug]zend_extension="E:phpStudyphpphp-5.5.38extphp_xdebug.dll"xdebug.remote_enable = Onxdebug.remote_host = 127.0.0.1xdebug.remote_port = 9100xdebug.idekey=PHPSTORM

step3 测试是否xdebug是否配置成功

重启

配置Phpstorm+Xdebug调试环境

查看phpinfo

配置Phpstorm+Xdebug调试环境

出现xdebug即说明安装成功了

配置Phpstorm+Xdebug调试环境


step4 phpstorm配置

与php.ini内容对应

Debug port配置

配置Phpstorm+Xdebug调试环境

DBGp Proxy 配置

配置Phpstorm+Xdebug调试环境

Servers配置

配置Phpstorm+Xdebug调试环境


step5 浏览器配置

下载火狐扩展-Xdebug-ext

配置Phpstorm+Xdebug调试环境

设置 IDE key,与php.ini保持一致

配置Phpstorm+Xdebug调试环境


step6 动态调试demo

以sqli-lab为例

配置Phpstorm+Xdebug调试环境

下断点

配置Phpstorm+Xdebug调试环境

开始debug并监听

配置Phpstorm+Xdebug调试环境

浏览器将扩展打开

配置Phpstorm+Xdebug调试环境

访问

http://127.0.0.1:8088/sqlilab/Less-1/?id=1%27

如图:

配置Phpstorm+Xdebug调试环境


最后:

       别刷微博了,快卷起来,开始"愉快"的挖洞之旅吧!!!


本文始发于微信公众号(don9sec):配置Phpstorm+Xdebug调试环境

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年10月25日07:40:36
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   配置Phpstorm+Xdebug调试环境https://cn-sec.com/archives/417675.html

发表评论

匿名网友 填写信息