Re: xdebug

  • From: Geoff Hoffman < >
  • To:
  • Subject: Re: xdebug
  • Date: Fri, 22 Mar 2013 09:19:33 -0700

Are you running any firewall or an anti-virus/security suite on your box?

Turn it off for testing, and/or add a rule to allow port 9000* 

*I was going to suggest to use netstat to check for port 9000 however when I try that with XDebug running and connected, I can't see port 9000 listed. I think maybe only the handshake occurs on port 9000 but then the protocol replies with a different communication channel similar to passive FTP. I could be wrong about that, but now I'm not sure how to check (or even know) the actual port number.

As an example, I opened a connection to Redis on our dev server:

$> redis-cli -h 192.168.[redacted]
redis 192.168.[redacted]:6379> KEYS *

Now in another terminal:

$> netstat -al | grep 6379
tcp4  0  0  192.168.[my_ip].53314  192.16.[redacted].6379   ESTABLISHED

So my Mac assigned port 53314 for the actual communication.

$> netstat -al | grep 9000

shows nothing with XDebug connected, but lots of other 53K range ports are in use. It's probably one of these connection pairs to & from localhost:

$> netstat -al | grep tcp
tcp4       0      0  localhost.4243         localhost.51590        ESTABLISHED
tcp4       0      0  localhost.51590        localhost.4243         ESTABLISHED
tcp4       0      0  localhost.51648        localhost.51650        ESTABLISHED
tcp4       0      0  localhost.51650        localhost.51648        ESTABLISHED

So, that's why I say, turn off all firewall and internet security suite type software while testing XDebug.

Hope that helps a little.

On Fri, Mar 22, 2013 at 5:39 AM, dbowman14 < " target="_blank"> > wrote:
I tried your xdebug settings with no luck.  Pretty sure that I have tried just about every possible combination.  There must be something on my dev box stopping the debugger from connecting..

Connect with us on twittergoogle+facebook, or linkedin.

Catch our next training in Atlanta Apr 10 - 12San Jose Apr 15 - 19Chicago Apr 22 - 26Denver Apr 29 - May 3 or See All.

This email, including any attachments, is for the sole use of the intended recipient and may contain confidential information. If you are not the intended recipient, please immediately notify us by reply email or by telephone, delete this email and destroy any copies. Thank you.


dbowman14 03/20/2013

Re: xdebug

Geoff Hoffman 03/20/2013

<Possible follow-up(s)>


dbowman14 03/22/2013

Re: xdebug

Geoff Hoffman 03/22/2013


dbowman14 03/23/2013

Re: xdebug

Geoff Hoffman 03/25/2013

Project Features

About this Project

PHP was started in November 2009, is owned by Petr Jiricka, and has 306 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm