phpstorm xdebug 断点调试配置记录 一粒小米

  1. Xdebug安装地址 https://xdebug.org/wizard,进入下载页面后点击custom installation instructions,可以找到适合的Xdebug版本。
  2. 复制本地运行的 phpinfo() 信息进去,下载对应的xdebug版本。
  3. 下载的dll放在对应php版本的ext目录里面, 例如 php\php7.4.3nts\ext
  4. 配置对应的php版本的php.ini 的xdebug配置。示例如下:
[Xdebug]
xdebug.profiler_append = 0
xdebug.profiler_enable=On
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir ="D:\phpstudy_pro\Extensions\tmp\xdebug"
xdebug.trace_output_dir="D:\phpstudy_pro\Extensions\tmp\xdebug"
xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable=On
xdebug.remote_handler="dbgp"
xdebug.remote_host="127.0.0.1"
xdebug.remote_autostart=1
zend_extension="D:/phpstudy_pro/Extensions/php/php7.4.3nts/ext/php_xdebug.dll"
xdebug.idekey=PHPSTORM
xdebug.auto_trace=On
xdebug.remote_port=9099
xdebug.collect_vars=1
xdebug.collect_return=1
xdebug.collect_params=1
xdebugbug.max_nesting_level = 10000
你的坚持 ------ 终将美好 ~
原文地址:https://www.cnblogs.com/pyspang/p/15598877.html