原创

开启xdebug教程


这里讲解下 PHPstorm + phpstudy 开启 xdebug的详细步骤。

环境

phpstudy
php 7.4.3
phpstorm 2021.1

准备

1:PHPstudy开启xdebug配置

2:修改 ini 配置文件

  1. [Xdebug]
  2. zend_extension=D:/phpstudy_pro/Extensions/php/php7.4.3nts/ext/php_xdebug.dll
  3. xdebug.collect_params=1
  4. xdebug.collect_return=1
  5. xdebug.auto_trace=Off
  6. xdebug.trace_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.4.3nts.xdebug.trace
  7. xdebug.profiler_enable=Off
  8. xdebug.profiler_output_dir=D:/phpstudy_pro/Extensions/php_log/php7.4.3nts.xdebug.profiler
  9. xdebug.remote_enable=On
  10. xdebug.remote_host=localhost
  11. xdebug.remote_port=9100
  12. xdebug.remote_handler=dbgp

3:phpstorm 修改配置

调试

访问你的域名并在最后加上参数 XDEBUG_SESSION_START=PHPSTORM
示例:

  1. http://mcr.test.com/?page=3&XDEBUG_SESSION_START=PHPSTORM
留言反馈
问题反馈渠道,如有软件无法下载或者其他问题可反馈。【由于某种原因,目前留言不展示】
用户需要登录后才能留言反馈