vscode安装xdebug扩展

vscode设置php xdebug扩展调试

php.ini 增加配置

[XDebug]
xdebug.profiler_output_dir=“E:\phpStudy\PHPTutorial\tmp\xdebug”
xdebug.trace_output_dir=“E:\phpStudy\PHPTutorial\tmp\xdebug”
; zend_extension=“i:\phpStudy\PHPTutorial\php\php-7.1.13-nts\ext\php_xdebug.dll”

zend_extension = php_xdebug.dll
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.romote_host=localhost
xdebug.remote_port=9001

开启调试

vscode设置php xdebug扩展调试
vscode设置php xdebug扩展调试
设置配置项vscode json端口为9001

断点后f5启动调试模式

相关文章:

  • 2022-01-18
  • 2021-06-10
  • 2021-10-30
  • 2021-10-19
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
猜你喜欢
  • 2021-06-04
  • 2022-01-11
  • 2021-11-27
  • 2021-12-01
  • 2021-11-21
  • 2022-03-08
相关资源
相似解决方案