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
可通过该处校验,检查配置是否存在问题

















![[业界] "汉芯造假"与黄禹锡干细胞造假的比较研究-微慑信息网-VulSee.com](http://news.ccidnet.com/col/attachment/2006/5/698387.jpg)

![[猎奇] 滥用机场反恐X光机:女子遭同事遭拍下「****」-微慑信息网-VulSee.com](http://www.gcpnews.com/images/pool/2010-03/d251532bdb589b4e7a548585c043edcb.jpg)


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

青云网
