简体   繁体   English

Xdebug / Vim /使其工作

[英]Xdebug / Vim / getting it to work

So I have tried following multiple tutorials to get xdebug to work on my development server. 因此,我尝试遵循以下多个教程来使xdebug在我的开发服务器上运行。 The best one I have found so far is this . 我到目前为止发现的最好的就是这个

I have installed xdebug and it shows correctly in my phpinfo(). 我已经安装了xdebug,它在我的phpinfo()中正确显示。 I have installed https://github.com/joonty/vdebug and when I hit F5 it works great. 我已经安装了https://github.com/joonty/vdebug ,当我按下F5时,效果很好。 The problem is I then go to my dev server ip address like so "http:///?XDEBUG_SESSION_START=1" and it doesn't trip anything. 问题是,然后我进入了我的开发服务器IP地址,例如“ http:///?XDEBUG_SESSION_START = 1”,它没有跳闸。 My vim xdebug just times out. 我的vim xdebug刚刚超时。

I have set up my php.ini file the following way: 我已经通过以下方式设置了php.ini文件:

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

I can't seem to figure out why this is happening. 我似乎无法弄清楚为什么会这样。 Any help would be appreciated. 任何帮助,将不胜感激。

I have these settings in my debug.ini 我的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

The profiler stuff is non-relevant, but remote_autostart might help you. 探查器的内容无关紧要,但是remote_autostart可能会帮助您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM