微慑信息网

phpstorm+xdebug+phpstudy[2021.04.18更新]

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 = PHPSTORM

xdebug.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

可通过该处校验,检查配置是否存在问题

 

 

 

 

赞(0) 打赏
转载请附本站链接,未经允许不得转载,,谢谢:微慑信息网-VulSee.com » phpstorm+xdebug+phpstudy[2021.04.18更新]

评论 抢沙发

微慑信息网 专注工匠精神

微慑信息网-VulSee.com-关注前沿安全态势,聚合网络安全漏洞信息,分享安全文档案例

访问我们联系我们

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏

登录

找回密码

注册