[xdebug-general] Re: Waiting for Xdebug session

From: Derick Rethans <derick[@]xdebug.org>
Date: Mon, 15 Mar 2010 17:52:14 +0000 (GMT)

On Sun, 14 Mar 2010, Thierry CHEN wrote:

> Derick Rethans <derick[@]xdebug.org> a écrit:
>
> > On Sun, 14 Mar 2010, Thierry CHEN wrote:
> >
> >> 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.

Compile it from source then, specifically try the latest beta. See:
http://xdebug.org/download.php

> > Please check:
> >
> > - whether Xdebug is actually trying to connect to Eclipse (through
> >   strace)
>
> Sorry. Howto do that ?

- stop apache
- run "strace /path/to/apache-binary -X"
- request script and see whether there is a connect.

>
> > - 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

Well, there is your problem then. Xdebug only tries to connect with IPv4
and doesn't support IPv6. The above output shows that Eclipse is only
listening on IPv6.

with kind regards,
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 Mon Mar 15 2010 - 17:52:14 GMT

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