当运行带有VSCode的XDebug并设置断点时,站点在完成调试之后会在某个点挂起。另外,如果我在一个甚至没有命中的页面上放置一个断点,它仍然会失败。如果我没有设置断点,一切都很好。以下是我的配置:
php.ini中的XDebug配置
[XDebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
launch.json
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/mnt/c/": "c:/"
}
}