我刚刚将我的 MacOS 更新到 Big Sur,我的本地主机配置一团糟。重新安装 PHP 和 Xdebug 后,我的 Xdebug 似乎无法正常工作。我可以看到它是通过安装的php -m,但它没有在phpinfo();. 此外,如果我打开 VSCode,启动“侦听 XDebug”,向文件添加断点并运行php -e FILENAME.php,断点有效,但如果我使用浏览器执行相同操作,则无效。
已经尝试了使用自制软件和其他几个教程的官方教程,因为从手动安装它直到自动完成所有事情。我在这里没有线索,欢迎任何帮助或想法。提前致谢。
下面是我的配置:
[xdebug]
zend_extension="/usr/local/Cellar/php/7.4.10/lib/php/20190902/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_host=localhost
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
Run Code Online (Sandbox Code Playgroud)
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"xdebugSettings": {
"max_data": -1
}
}
]
}
Run Code Online (Sandbox Code Playgroud)
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
exif
FFI
fileinfo
filter …Run Code Online (Sandbox Code Playgroud)