簡體   English   中英

在PHP 7和Ubuntu 16.04中使用Xdebug的debugclient

[英]Using Xdebug's debugclient with PHP 7 and Ubuntu 16.04

我想使用XDebug debugclient在本地調試PHP腳本。 我不在乎使用遠程IDE或類似的東西。

不幸的是,我總是這個/tmp/xdebug.log

I: Connecting to configured address/port: 127.0.0.1:8083.
E: Time-out connecting to client. :-(

我已經嘗試了php-xdebug包並從源代碼編譯了最新的XDebug 2.4.1,我得到了相同的結果。

我還嘗試了9000(默認),9005、8083等端口。

我的xdebug.ini看起來像這樣:

zend_extension=/usr/lib/php/20151012/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=8083
xdebug.remote_log=/tmp/xdebug.log
xdebug.idekey=mbb

這是Ubuntu 16.04,PHP 7.0.8和Xdebug 2.4.1。

有人可以建議什么嗎?

如何啟動調試會話? 您是否嘗試使用xdebug_break()?

還是與端口8083的通信被iptables阻止了? (iptables --list)

/tmp/xdebug.log中有東西嗎?

暫無
暫無

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

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