phpstorm+xdebug+phpstudy调试php
1、phpstudy默认含有xdebug,开启:
2、编辑php.ini
[XDebug]
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_name = “cachegrind.out.%t.%p”
xdebug.remote_enable = 1
xdebug.remote_handler = “dbgp”
xdebug.remote_host = “127.0.0.1”
xdebug.remote_port = 9001
xdebug.idekey = PHPSTORMxdebug.profiler_output_dir=”D:\phpStudy\PHPTutorial\tmp\xdebug”
xdebug.trace_output_dir=”D:\phpStudy\PHPTutorial\tmp\xdebug”
zend_extension=”D:\phpStudy\PHPTutorial\php\php-5.6.27-nts\ext\php_xdebug.dll”
注意有的zend_extension前可能带有分号注释符,记得去掉….否则无法在phpinfo中查看到xdebug
3、访问phpinfo(),确认xdebug存在
4、配置phpstorm
端口与php.ini中端口一致
server配置xdebug
php环境配置,选择CLI 来自phpstudy中的php版本
2021.04.18更新:
记得开启php.ini中的
xdebug.remote_enable=1
可通过该处校验,检查配置是否存在问题












![[pywxdump] 解密微信部分数据库-微慑信息网-VulSee.com](https://vulsee.com/wp-content/uploads/2026/06/fc478f3bb9d52020622bef86acd3eefe.png)

![[图片] 神秘的北朝鲜女性日常生活工作组照-微慑信息网-VulSee.com](http://image2.sina.com.cn/lx/upload/37/1092/20060320/742/148421/148421.jpg)
![CVE-2021-2109 Weblogic RCE[附漏洞利用代码]-微慑信息网-VulSee.com](https://vulsee.com/wp-content/uploads/2021/01/beepress5-1611235089-220x150.jpeg)





![[八卦] 王婷婷—揭秘一个大三女生的性爱录像-微慑信息网-VulSee.com](http://free.86hy.com/crack/pic/1.jpg)
![[随笔]今天国际警察节-微慑信息网-VulSee.com](http://photo.sohu.com/20041017/Img222528326.jpg)

青云网
