VScode - PHP - xdebug环境安装

需求

VScode - PHP - xdebug环境安装
环境:xampp+php7.3.9

步骤

xampp的php目录加入环境变量,这样的话在cmd可以随时调用
命令行下使用PHP -i 输出 phpinfo()内容

xDebug 下载 链接:https://xdebug.org/download.php

如果你不知道如何下载对应的xdebug版本

复制你的phpinfo()内容到这个网页中,自动帮你分析如何下载以及安装
https://xdebug.org/wizard

例如我的,然后跟着这个向导安装即可

最后在你的php.ini 文件中加入配置文件即可
[xdebug]
zend_extension = "D:\xampp\php\ext\php_xdebug-2.8.0-7.3-vc15-x86_64.dll"
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = "9001"

猜你喜欢

转载自www.cnblogs.com/QinTO/p/11871782.html