1. 程式人生 > 其它 >phpstorm xdebug 斷點除錯配置記錄

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
你的堅持 ------ 終將美好 ~