簡體   English   中英

Xdebug / Vim /使其工作

[英]Xdebug / Vim / getting it to work

因此,我嘗試遵循以下多個教程來使xdebug在我的開發服務器上運行。 我到目前為止發現的最好的就是這個

我已經安裝了xdebug,它在我的phpinfo()中正確顯示。 我已經安裝了https://github.com/joonty/vdebug ,當我按下F5時,效果很好。 問題是,然后我進入了我的開發服務器IP地址,例如“ http:///?XDEBUG_SESSION_START = 1”,它沒有跳閘。 我的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可能會幫助您。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM