[xdebug-general] Re: Waiting for Xdebug session

From: Derick Rethans <derick[@]xdebug.org>
Date: Sun, 14 Mar 2010 15:26:31 -0400 (EDT)

On Sun, 14 Mar 2010, Thierry CHEN wrote:

> Since I did 2 things:
>
> * upgraded my debian (Sid) system whitch lead to upgrade from php 5.2.6 to 5.3.1
> * installed zendoptimizer

ZendOptimizer prevents other non-Zend zend extensions from loading
properly.

> Then, when I started a debug session, Firefox opens a new window with
> my script, as usual, but Eclipse hangs up with message "Waiting for
> Xdebug session" and no breakpoints are working.
>
> So I forced back my php install to 5.2.6 and uninstalled zendoptimizer
> (whitch I learned was not compatible) but Eclipse still hangs.
>
> netstat -a shows Eclipse listens to the right default 9000 port and my php.ini is like that:
>
> [Xdebug]; kmc Mars 2009
> zend_extension=/usr/lib/php5/20060613+lfs/xdebug-2.0.4.so
> xdebug.remote_enable=true
> xdebug.remote_host=127.0.0.1 
> xdebug.remote_port=9000
> xdebug.remote_handler=dbgp
> xdebug.profiler_enable=0
> ;xdebug.profiler_output_dir=/var/log/xdebug.log
> xdebug.remote_log=/var/log/xdebug.log
>
> phpinfo() still shows xdebug 2.0.4 installed.

2.0.4 is pretty old, I suggest you try the latest beta (See
http://derickrethans.nl/xdebug-210beta3.html) However, 2.0.4 should
still work.

Please check:

- whether Xdebug is actually trying to connect to Eclipse (through
  strace)
- whether you can telnet to "127.0.0.1 9000".

You also need to be aware that you might have to recompile Xdebug if you
upgrade PHP.

Derick

-- 
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
twitter: @derickr and @xdebug
Received on Sun Mar 14 2010 - 19:26:33 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST