VS code编辑器安装 php7.2 NTS 版本 Xdebug
本文使用的是 phpstudy 一键安装包(windows32位) php 版本是 php7.2 NTS 1、在 phpstudy 面板中开启 phpdebug 扩展 // 其他选项菜单-> php 扩展与设置-> php 扩展 2、官方下载 Xdebug // 注意必须要安装和自己使用 php 版本同版本的 Xdebug https://xdebug.org/download.php 3、把 Xdebug 的 dll 放到 php 相关目录下面 4、在 php 配置文件 php.ini 的最后加上以下代码 [XDebug] xdebug.profiler_output_dir="I:\phpStudy\PHPTutorial\tmp\xdebug" xdebug.trace_output_dir="I:\phpStudy\PHPTutorial\tmp\xdebug" zend_extension="I:\phpStudy\PHPTutorial\php\php-7.2.1-nts\ext\php_xdebug-2.7.0beta1-7.2-vc15-nts.dll" xdebug.remote_enable = 1 xdebug.remote_autostart = 1 5、检查 php 扩展中是否已开启 Xdebug // 查看 php 扩展(需要将 php.exe 添加到