CLI debugging, PHP_IDE_CONFIG

I've attempted to configure IDE cli debugging by following this article:

http://blog.jetbrains.com/webide/2012/03/new-in-4-0-easier-debugging-of-remote-php-command-line-scripts/

And I've set my PHP_IDE_CONFIG variable to match my PHP Server name.  Whenever I trigger my cli script, I see the following error in the event log:

1:40:16 PM Cannot accept external Xdebug connection: Cannot parse the value of '$_SERVER['PHP_IDE_CONFIG']'


I've echoed the variable from the debug breakpoint I've configured, and it's set exactly as expected.  Do you all have any further hints on getting this working?

3 comments
Comment actions Permalink

Andrew,

First of all please note that the feature is only available since 4.0.
Could you please provide your Xdebug log (http://xdebug.org/docs/remote#remote_log)?

Thank you for feedback!

0
Comment actions Permalink

Ah, right, I forgot to mention I'm on OSX 10.7 & I'm using PHPStorm 4.02.

Here's a complete transaction from xdebug.log:


Log opened at 2012-06-18 23:10:47
I: Connecting to configured address/port: localhost:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///usr/local/Cellar/php53/5.3.13/bin/doctrine" language="PHP" protocol_version="1.0" appid="43655" idekey="akreps"><engine version="2.2.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2012 by Derick Rethans]]></copyright></init>


<- feature_set -i 0 -n show_hidden -v 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="0" feature="show_hidden" success="1"></response>


<- feature_set -i 1 -n max_depth -v 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="max_depth" success="1"></response>


<- feature_set -i 2 -n max_children -v 100
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_children" success="1"></response>


<- status -i 3
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="status" transaction_id="3" status="starting" reason="ok"></response>


<- step_into -i 4
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="4" status="break" reason="ok"><xdebug:message filename="file:///usr/local/Cellar/php53/5.3.13/bin/doctrine" lineno="4"></xdebug:message></response>


<- eval -i 5 -- aXNzZXQoJF9TRVJWRVJbJ1BIUF9JREVfQ09ORklHJ10p
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="eval" transaction_id="5"><property address="140734846884544" type="bool"><![CDATA[1]]></property></response>


<- eval -i 6 -- KHN0cmluZykoJF9TRVJWRVJbJ1BIUF9JREVfQ09ORklHJ10p
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="eval" transaction_id="6"><property address="140734846884544" type="string" size="8" encoding="base64"><![CDATA[cHJvZHVjdHM=]]></property></response>


<- run -i 7
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run" transaction_id="7" status="stopping" reason="ok"></response>


<- stop -i 8
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stop" transaction_id="8" status="stopped" reason="ok"></response>


Log closed at 2012-06-18 23:10:48

0
Comment actions Permalink

Andrew,

Sorry for the delay. I can't reproduce the issue on the similar environment. Also your xdebug log looks OK.
Could you please provide logs of the several debug sessions and screenshot of the error message?

Thank you for feedback!

0

Please sign in to leave a comment.