Xdebug探查器仅在本地主机上工作


Xdebug profiler only working on localhost

我正在努力掌握osx上的xdebug探查器。我已经设置好了,但它只在本地主机上工作。即http://localhost/foo/bar.php

我在vhost上有一个Zend Framework应用程序,但没有从中收集任何配置文件数据。

我的php.ini看起来像:

[xdebug]
xdebug.idekey=netbeans-xdebug
xdebug.remote_enable= On
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.var_display_max_children = 999
xdebug.var_display_max_data = 99999
xdebug.var_display_max_depth = 100
xdebug.profiler_enable = 1
xdebug.profiler_output_name = "cachegrind.out.%t-%s"

Xdebug执行php.ini命令它执行的任何操作。如果没有配置,Xdebug将不会进行配置。它不在乎它是哪一个VHOST。所以很可能你有配置问题。