vscode设置php xdebug扩展调试

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启动调试模式