Xdebug / Vim / 让它工作

Xdebug / Vim / getting it to work

所以我尝试按照多个教程让 xdebug 在我的开发服务器上工作。目前为止我发现的最好的是 this

我已经安装了 xdebug,它在我的 phpinfo() 中正确显示。我已经安装了 https://github.com/joonty/vdebug,当我按 F5 键时它运行良好。问题是我然后像 "http:///?XDEBUG_SESSION_START=1" 这样转到我的开发服务器 ip 地址,它没有任何问题。我的 vim xdebug 刚刚超时。

我已经按照以下方式设置了我的 php.ini 文件:

zend_extension=/usr/lib/php5/20090626/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000

我似乎无法弄清楚为什么会这样。任何帮助,将不胜感激。

我的 debug.ini

中有这些设置
0 zend_extension=xdebug.so                                                                                            
1 xdebug.remote_enable=on
2 xdebug.remote_handler=dbgp
3 xdebug.remote_host=localhost
4 xdebug.remote_port=9000
5 
6 xdebug.profiler_output_dir="/tmp"
7 xdebug.profiler_append=0
8 xdebug.profiler_enable_trigger=On
9 xdebug.profiler_output_name="%H-%u.trace"
10 
11 xdebug.profiler_enable=0
12 xdebug.remote_autostart=1
13 xdebug.max_nesting_level=200

探查器内容无关紧要,但 remote_autostart 可能会对您有所帮助。