[xdebug-general] Re: Waiting for Xdebug session

From: Thierry CHEN <frms[@]webologix.com>
Date: Sun, 14 Mar 2010 23:31:04 +0100

Thanks a lot for your quick reply. My answers below.

Derick Rethans <derick[@]xdebug.org> a écrit:

> 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.
When I try to get Debian's version of Xdebug with normal package management it installs the version 2.0.3 of Xdebug whitch doesn't works too.
>
> Please check:
>
> - whether Xdebug is actually trying to connect to Eclipse (through
>   strace)

Sorry. Howto do that ?

> - whether you can telnet to "127.0.0.1 9000".

No:
proliant:/etc/php5/apache2# netstat -a | grep 9000
tcp6       0      0 [::]:9000               [::]:*                  LISTEN
proliant:/etc/php5/apache2# telnet 127.0.0.1 9000
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

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

I finaly did not upgrade PHP, so...

>
> Derick
>
> --
> Like Xdebug? Consider a donation: http://xdebug.org/donate.php
> Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
> twitter: @derickr and @xdebug

 

-- 
Thierry CHEN
webologix.com
----------------------------------------------------------------
<img src="http://www.webologix.com/favicon.ico">
Received on Mon Mar 15 2010 - 01:42:32 GMT

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