当某人从另一台机器点击URL时,PHP调试断点未被命中

时间:2016-03-08 13:00:46

标签: php phpstorm xdebug

我启用了XDebug并配置了PhpStorm:

enter image description here

这是我的PHP.ini配置文件:

zend_extension = "c:\wamp\bin\php\php5.5.12\zend_ext\php_xdebug-2.2.5-5.5-vc11-x86_64.dll"
[xdebug]
xdebug.remote_enable = on
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.show_local_vars=0
xdebug.remote_port=9000

我把我的WAMP放在网上。所以任何人都可以输入我的IP:端口组合,网站得到很好的加载。当我从我的机器上访问类似我的IP:端口的URL时,调试断点就可以了。但是当来自不同机器的其他人点击我的IP:端口页面加载正常但断点不会在我的机器上被击中。

我希望每当有人从不同的机器点击URL时我的断点就会在我的机器上被击中。

我需要做些额外的设置吗?

1 个答案:

答案 0 :(得分:0)

尝试在php.ini中设置remote_host

https://xdebug.org/docs/all_settings#remote_host

我猜这只是为了测试,但请注意,如果它一次尝试提供多个请求,它会让你挂起页面。

相关问题