Hello,
I'm evaluating PhpStorm v3.0.2
I have failed to start a remote Zend debug session, so i'm trying my luck with xdebug.
After struggling for couple of hours, I dived into the logs to the communication between PhpStorm and xdebug:
Here's the log for xdebug:
Log opened at 2012-02-29 18:30:26
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///media/app_eagle_2011_11_22/admin_console/web/index.php" language="PHP" protocol_version="1.0" appid="4025" idekey="PHPSTORM"><engine version="2.1.3"><![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>
<- step_into -i 3
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="3" status="stopping" reason="ok"></response>
<- eval -i 4 -- aXNzZXQoJF9DT09LSUVbJ1BIUFNUT1JNX1hERUJVR19CUkVBSyddKQ==
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="eval" transaction_id="4"><error code="5"><message><![CDATA[command is not available]]></message></error></response>
Log closed at 2012-02-29 18:30:28
and the log PhpStorm log:
2012-02-29 20:30:31,952 [ 27951] DEBUG - .connection.PhpDebugConnection - 775598#<-InitNotificationcom.jetbrains.php.debug.xdebug.dbgp.messages.InitNotification@1e28c99
2012-02-29 20:30:31,964 [ 27963] DEBUG - .connection.PhpDebugConnection - 775598#----connection started
2012-02-29 20:30:31,965 [ 27964] DEBUG - .connection.PhpDebugConnection - 775598#->FeatureSetRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.FeatureSetRequest@469b16
2012-02-29 20:30:31,969 [ 27968] DEBUG - bug.dbgp.messages.DbgpResponse - <?xml version="1.0" encoding="UTF-8"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="0" feature="show_hidden" success="1" />
2012-02-29 20:30:31,969 [ 27968] DEBUG - .connection.PhpDebugConnection - 775598#<-SetResponsecom.jetbrains.php.debug.xdebug.dbgp.messages.SetResponse@1f35ded
2012-02-29 20:30:31,970 [ 27969] DEBUG - .connection.PhpDebugConnection - 775598#->FeatureSetRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.FeatureSetRequest@b49cf1
2012-02-29 20:30:31,971 [ 27970] DEBUG - bug.dbgp.messages.DbgpResponse - <?xml version="1.0" encoding="UTF-8"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="max_depth" success="1" />
2012-02-29 20:30:31,971 [ 27970] DEBUG - .connection.PhpDebugConnection - 775598#<-SetResponsecom.jetbrains.php.debug.xdebug.dbgp.messages.SetResponse@1abc0bd
2012-02-29 20:30:31,971 [ 27970] DEBUG - .connection.PhpDebugConnection - 775598#->FeatureSetRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.FeatureSetRequest@fabc3a
2012-02-29 20:30:31,973 [ 27972] DEBUG - bug.dbgp.messages.DbgpResponse - <?xml version="1.0" encoding="UTF-8"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_children" success="1" />
2012-02-29 20:30:31,973 [ 27972] DEBUG - .connection.PhpDebugConnection - 775598#<-SetResponsecom.jetbrains.php.debug.xdebug.dbgp.messages.SetResponse@15b92b3
2012-02-29 20:30:31,974 [ 27973] DEBUG - .connection.PhpDebugConnection - 775598#->StepIntoRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.StepIntoRequest@5c27f0
2012-02-29 20:30:32,752 [ 28751] DEBUG - bug.dbgp.messages.DbgpResponse - <?xml version="1.0" encoding="UTF-8"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="3" status="stopping" reason="ok" />
2012-02-29 20:30:32,753 [ 28752] DEBUG - .connection.PhpDebugConnection - 775598#<-StatusResponsecom.jetbrains.php.debug.xdebug.dbgp.messages.StatusResponse@7fd24a
2012-02-29 20:30:33,105 [ 29104] DEBUG - .connection.PhpDebugConnection - 775598#->EvalRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.EvalRequest@1762fef
2012-02-29 20:30:33,128 [ 29127] DEBUG - bug.dbgp.messages.DbgpResponse - <?xml version="1.0" encoding="UTF-8"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="eval" transaction_id="4">
<error code="5">
<message><![CDATA[command is not available]]></message>
</error>
</response>
2012-02-29 20:30:33,128 [ 29127] DEBUG - .connection.PhpDebugConnection - 775598#<-ErrorResponsecom.jetbrains.php.debug.xdebug.dbgp.messages.ErrorResponse@f5d656
2012-02-29 20:30:33,136 [ 29135] DEBUG - .connection.PhpDebugConnection - 775598#---Start detaching
2012-02-29 20:30:33,136 [ 29135] DEBUG - .connection.PhpDebugConnection - 775598#---Start initializing
2012-02-29 20:30:33,138 [ 29137] DEBUG - .connection.PhpDebugConnection - 775598#---input stream is finished
2012-02-29 20:30:33,138 [ 29137] DEBUG - .connection.PhpDebugConnection - 775598#---stop reading
2012-02-29 20:30:33,145 [ 29144] DEBUG - .connection.PhpDebugConnection - 775598#->RunRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.RunRequest@145af1f
2012-02-29 20:30:33,146 [ 29145] DEBUG - .connection.PhpDebugConnection - 775598#---stop writing
2012-02-29 20:30:33,146 [ 29145] DEBUG - .connection.PhpDebugConnection - 775598#----connection stopped
2012-02-29 20:30:33,146 [ 29145] DEBUG - .connection.PhpDebugConnection - 775598#---Stop detaching
I guess the issue is related to the "command is not available" response message.
PhpStorm is running on windows
Php & xdebug are running on a local ubuntu virtual machine
xdebug version 2.1.3
I'm using symlinks
Any help to further troubleshoot my issue is appreciated.
Roman
