MediaWiki本地环境Xdebug配置问题求助(VS Code)
本地MediaWiki环境Xdebug调试配置问题
我在本地MediaWiki环境中配置Xdebug时遇到了问题,按照文档说明应该可以直接使用,但现在无法进行单步调试,也触发不了断点。我使用VS Code作为IDE,已经尝试了MediaWiki文档、ChatGPT、xdebug.com等渠道能找到的所有方法,问题仍未解决。以下是我的配置文件信息:
.env 文件配置
MW_SCRIPT_PATH=/w MW_SERVER=http://localhost:8080 MW_DOCKER_PORT=8080 MEDIAWIKI_USER=[removed for privacy] MEDIAWIKI_PASSWORD=[removed for privacy] XDEBUG_CONFIG='mode=debug start_with_request=trigger client_host=host.docker.internal client_port=9003 idekey=VSCODE' XDEBUG_MODE=debug XDEBUG_ENABLE=true XHPROF_ENABLE=true
launch.json 文件配置
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": 9003, "pathMappings": { "/var/www/html/w": "${workspaceFolder}" } }, { "name": "Launch currently open script", "type": "php", "request": "launch", "program": "${file}", "cwd": "${fileDirname}", "port": 9003 } ] }
内容的提问来源于stack exchange,提问作者Timmy
相关产品推荐
相关产品推荐

