本文使用的是 phpstudy 一键安装包(windows32位)
php 版本是 php7.2 NTSphp
// 其余选项菜单-> php 扩展与设置-> php 扩展
// 注意必需要安装和本身使用 php 版本同版本的 Xdebug https://xdebug.org/download.php
[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
// 查看 php 扩展(须要将 php.exe 添加到 windows 环境变量中去,具体方法自行 google 吧) php -m