BT + PHP7.3 + XDEBUG3.1.6 调试THINKPHP , 任何请求即中断设置备忘
服务器PHP.INI追加以下:
XDebug版本是3.1.6, 以下配置可能某项不是必须, 有冗余
[Xdebug]
xdebug.mode=debug
xdebug.client_host=42.51.100.217(此处是调试器所在的IP, 应该是外网IP或内网穿透的本地IP)
xdebug.client_port=9003
xdebug.start_with_request = yes
xdebug.collect_return=On
xdebug.idekey="VSCODE"
xdebug.remote_autostart = 1
xdebug.remote_handler = "dbgp"
调试器所在机器
launch.json
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "xdug_localhost",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": {
"E:/fastadmin": "${workspaceFolder}/"
},
"hostname": "填调试器IP"
},
{
"name": "xdug_remote",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": {
"/www/wwwroot/www.domain.com": "${workspaceFolder}/"
},
"hostname": "填调试器IP"
}
]
}