Index.php 在一个请求中调用了两次

Index.php called twice in one request

我遇到了错误或其他问题。我注意到它是因为我的路由被多次调用。在我删除了很多行之后,我最终只得到了 index.php。 index.php 现在只有 $var=1; 在里面,但它也会多次触发 Xdebug。

有人知道如何修复它或为什么会发生吗?

如果这是问题所在,这是我的 Xdebug 设置:

xdebug.remote_enable=true
xdebug.profiler_output_dir="C:\xampp2\tmp"
xdebug.idekey="PHPSTORM"
xdebug.remote_autostart = on
xdebug.profiler_output_name = "cachegrind.out.%u.%H_%R"

正如 LazyOne 指出的那样,这是因为缺少 Favicon。谢谢你。修复是添加:

  <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">