2
[Zend Debugger] Cannot receive start command
...
[Zend Debugger] Cannot send message

I googled and found there are others also having this problem (here and this one on serverfault), but unluckily no fix yet.

PHP 5.2.8 (cli) (built: Dec  8 2008 19:31:23)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

Is there an official fix for this yet?

Community
  • 1
  • 1
wamp
  • 5,789
  • 17
  • 52
  • 82
  • 1
    Could you describe your debugging setup a bit closer? (e.g. php.ini part configuring zend debugger, QUERY_STRING environment variable, etc.) – Henrik Opel Jun 18 '10 at 10:29
  • The setup has no difference , I'm debugging the drupal, so can't reproduce easily without giving all the code,you know... – wamp Jun 21 '10 at 02:45
  • 1
    @wamp: The error message indicates that the debugger on the server can not 'talk' to your development environment (Eclipse?, some editor?, ...). There are *plenty of possible reasons* for this, depending on how your debugging environment is set up. So my question was aimed at getting some more details that would allow us to speculate on possible reasons. Those Details would be e.g. your Zend Debugger server configuration settings in php.ini, your client side setup (what do you use for debugging - Eclipse? If so, how did you configure debugging there), QUERY_STRING env variable on client, etc. – Henrik Opel Jun 21 '10 at 10:39
  • I'm pretty sure this issue can't be reproduced easily. So it only helps if you met exactly the same problem. – wamp Jun 22 '10 at 02:36
  • 2
    @wamp: This gets somewhat ridiculous - how should I know if I 'met exactly the same problem', if you do not provide the information necessary to judge if my encounters where the same problem? (As stated, the errors you posted are *generic* errors that can have plenty of causes - depending on your environment) – Henrik Opel Jun 23 '10 at 18:33
  • These messages mean Zend Debugger is unable to communicate with Studio, for one reason or another. Unfortunately, it's hard to know why without having more details... – StasM Nov 07 '10 at 06:43
  • @wamp: Could you find any clue so far? – duru Aug 31 '15 at 17:42

1 Answers1

1

Well, like Henrik already said, this is hard to diagnose with no information about your setup at all. Also, if Roman (the rbzend from the thread you linked at the Zend Forum) has no solution at hand, it is likely really an incompatibility you have to live with for now.

If this is something that was fixed, your best bet would be to download the latest version of Zend Debugger from the Zend website. Then go through installation again as explained in the Sticky Note Setting Up Zend Debugger in the Zend Forum.

If reinstalling Zend Debugger doesn't help and you do have a valid support license with Zend, you might want to open a ticket with Zend Support. I have opened a few tickets with them myself and found them very helpful. So far, they solved all issues I had with Zend Debugger and Zend Studio. If you don't have a valid license, you can still register for the Zend Forum and ask there.

As a random idea, you might get the Debugger working by disabling IPv6 in Zend Studio/Eclipse by starting it with -Djava.net.preferIPv4Stack=true. I remember I had an issue with Zend Debugger because of that once. But of course it might be completely unrelated to your troubles - it's really just a straw.

Finally, if you don't mind, you can still change to XDebug instead.

Gordon
  • 312,688
  • 75
  • 539
  • 559
  • @Gordon, my issue only happens with some pages definitely, doesn't happen with some others,also definitely. – wamp Jun 23 '10 at 08:12
  • Not sometimes, for page A,it always works, but for page B,it always doesn't work. – wamp Jun 23 '10 at 09:41
  • @wamp Does the page work without Zend Debugger enabled? Does the page send any weird headers or destroy Cookies or something? It's impossible to tell what's wrong without code. Like I said, Zend Support is your best bet here. – Gordon Jun 23 '10 at 09:51
  • @Gordon, sure, of course,that's the weiredest thing I've met,no clue,and even impossible to trace... – wamp Jun 25 '10 at 03:29
  • @wamp sorry, cannot help you with that beyond what I have alredy suggested then. – Gordon Jun 25 '10 at 07:04