Frequent disconnects in PhpStorm

I got PhpStorm working in remote debugging mode against my Ubuntu sandbox, but once it hits a breakpoint the session never lasts very long (from a couple of seconds to a couple of minutes) before the debugger disconnects.

I have attached the tail of my debug log, if that helps. "Step Into", near the top, was the last thing I did. It would be great if we could get this working.

Thanks,

==snip==

</response>
2012-03-12 09:36:01,950 [ 441205]  DEBUG - .connection.PhpDebugConnection - 10669339#<-EvalResponsecom.jetbrains.php.debug.xdebug.dbgp.messages.EvalResponse@1e7783e
2012-03-12 09:36:04,987 [ 444242]  DEBUG - .connection.PhpDebugConnection - 10669339#->PropertyGetRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.PropertyGetRequest@44c550
2012-03-12 09:36:04,991 [ 444246]  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="property_get" transaction_id="95">
  <property name="$GLOBALS['IDE_EVAL_CACHE']['3376ebfc-8d76-4a42-a8fb-bfaec7bec00d']-&gt;scratch" fullname="$GLOBALS['IDE_EVAL_CACHE']['3376ebfc-8d76-4a42-a8fb-bfaec7bec00d']-&gt;scratch" address="139975198464336" type="array" children="1" numchildren="7">
    <property name="queue" fullname="$GLOBALS['IDE_EVAL_CACHE']['3376ebfc-8d76-4a42-a8fb-bfaec7bec00d']-&gt;scratch['queue']" address="139975198464784" type="string" size="16" encoding="base64"><![CDATA[L2dhbWUvd2Fsa29mZi85MQ==]]></property>
    <property name="messages" fullname="$GLOBALS['IDE_EVAL_CACHE']['3376ebfc-8d76-4a42-a8fb-bfaec7bec00d']-&gt;scratch['messages']" address="139975198464992" type="array" children="0" numchildren="0" />
    <property name="finished_turn" fullname="$GLOBALS['IDE_EVAL_CACHE']['3376ebfc-8d76-4a42-a8fb-bfaec7bec00d']-&gt;scratch['finished_turn']" address="139975198465432" type="bool"><![CDATA[1]]></property>
    <property name="next_player" fullname="$GLOBALS['IDE_EVAL_CACHE']['3376ebfc-8d76-4a42-a8fb-bfaec7bec00d']-&gt;scratch['next_player']" address="139975198465512" type="string" size="7" encoding="base64"><![CDATA[NjAwMDQzOQ==]]></property>
    <property name="cost" fullname="$GLOBALS['IDE_EVAL_CACHE']['3376ebfc-8d76-4a42-a8fb-bfaec7bec00d']-&gt;scratch['cost']" address="139975201005640" type="array" children="1" numchildren="1" />
    <property name="read_board" fullname="$GLOBALS['IDE_EVAL_CACHE']['3376ebfc-8d76-4a42-a8fb-bfaec7bec00d']-&gt;scratch['read_board']" address="139975201014496" type="array" children="1" numchildren="64" />
    <property name="turns" fullname="$GLOBALS['IDE_EVAL_CACHE']['3376ebfc-8d76-4a42-a8fb-bfaec7bec00d']-&gt;scratch['turns']" address="139975201004288" type="int"><![CDATA[2]]></property>
  </property>
</response>
2012-03-12 09:36:04,992 [ 444247]  DEBUG - .connection.PhpDebugConnection - 10669339#<-PropertyGetResponsecom.jetbrains.php.debug.xdebug.dbgp.messages.PropertyGetResponse@f63a9d
2012-03-12 09:36:10,446 [ 449701]  DEBUG - .connection.PhpDebugConnection - 10669339#->StepIntoRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.StepIntoRequest@1f158e6
2012-03-12 09:36:10,448 [ 449703]  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="96" status="break" reason="ok">
  <xdebug:message filename="file:///mnt/hgfs/website/api/games/walkoff/power_move_top.php" lineno="239" />
</response>
2012-03-12 09:36:10,448 [ 449703]  DEBUG - .connection.PhpDebugConnection - 10669339#<-StatusResponsecom.jetbrains.php.debug.xdebug.dbgp.messages.StatusResponse@37b9a
2012-03-12 09:36:10,448 [ 449703]  DEBUG - p.debug.common.PhpDebugProcess - 2606527# Stop at ('file:///mnt/hgfs/website/api/games/walkoff/power_move_top.php':238)
2012-03-12 09:36:10,448 [ 449703]  DEBUG - p.debug.common.PhpDebugProcess - 2606527# remote: 'file:///mnt/hgfs/website/api/games/walkoff/power_move_top.php' <-> local: 'C:\imvu\website\api\games\walkoff\power_move_top.php'
2012-03-12 09:36:10,448 [ 449703]  DEBUG - p.debug.common.PhpDebugProcess - 2606527# remote: 'file:///mnt/hgfs/website/api/games/walkoff/power_move_top.php' <-> extracted: '/mnt/hgfs/website/api/games/walkoff/power_move_top.php'
2012-03-12 09:36:10,448 [ 449703]  DEBUG - .connection.PhpDebugConnection - 10669339#->StackGetRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.StackGetRequest@a7dc4b
2012-03-12 09:36:10,450 [ 449705]  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="stack_get" transaction_id="97">
  <stack where="game\walk_off\power_moves\trigger_end_turn" level="0" type="file" filename="file:///mnt/hgfs/website/api/games/walkoff/power_move_top.php" lineno="239" />
  <stack where="game\walk_off\power_moves\trigger_end_move" level="1" type="file" filename="file:///mnt/hgfs/website/api/games/walkoff/power_move_top.php" lineno="231" />
  <stack where="WalkOff::handle_player_message" level="2" type="file" filename="file:///mnt/hgfs/website/import/walkoff.php" lineno="551" />
  <stack where="GameLogicPassThru::handle" level="3" type="file" filename="file:///mnt/hgfs/website/imq/game_logic_passthru.php" lineno="13" />
  <stack where="{main}" level="4" type="file" filename="file:///mnt/hgfs/website/imq/game_logic_passthru.php" lineno="21" />
</response>
2012-03-12 09:36:10,450 [ 449705]  DEBUG - .connection.PhpDebugConnection - 10669339#<-StackGetResponsecom.jetbrains.php.debug.xdebug.dbgp.messages.StackGetResponse@6fd2ba
2012-03-12 09:36:10,479 [ 449734]  DEBUG - .connection.PhpDebugConnection - 10669339#->ContextNamesRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.ContextNamesRequest@1aea1bc
2012-03-12 09:36:10,480 [ 449735]  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="context_names" transaction_id="98">
  <context name="Locals" id="0" />
  <context name="Superglobals" id="1" />
</response>
2012-03-12 09:36:10,480 [ 449735]  DEBUG - .connection.PhpDebugConnection - 10669339#<-ContextNamesResponsecom.jetbrains.php.debug.xdebug.dbgp.messages.ContextNamesResponse@1e46698
2012-03-12 09:36:10,480 [ 449735]  DEBUG - .connection.PhpDebugConnection - 10669339#->ContextGetRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.ContextGetRequest@b9583
2012-03-12 09:36:10,481 [ 449736]  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="context_get" transaction_id="99" context="0">
  <property name="full_name" fullname="$full_name" type="uninitialized" />
</response>
2012-03-12 09:36:10,481 [ 449736]  DEBUG - .connection.PhpDebugConnection - 10669339#<-ContextGetResponsecom.jetbrains.php.debug.xdebug.dbgp.messages.ContextGetResponse@84f276
2012-03-12 09:36:10,481 [ 449736]  DEBUG - .connection.PhpDebugConnection - 10669339#->ContextGetRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.ContextGetRequest@4a2765
2012-03-12 09:36:10,482 [ 449737]  DEBUG - .php.debug.common.PhpEvaluator - evaluate: $state-> (isset($state))?($state):"IDE_EVAL_ERR"
2012-03-12 09:36:10,482 [ 449737]  DEBUG - .connection.PhpDebugConnection - 10669339#->EvalRequestcom.jetbrains.php.debug.xdebug.dbgp.messages.EvalRequest@16f792
2012-03-12 09:36:10,488 [ 449743]  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="context_get" transaction_id="100" context="1">
  <property name="_COOKIE" fullname="$_COOKIE" address="139975187435768" type="array" children="0" numchildren="0" />
  <property name="_ENV" fullname="$_ENV" address="139975187439568" type="array" children="1" numchildren="10">
    <property name="APACHE_RUN_DIR" fullname="$_ENV['APACHE_RUN_DIR']" address="139975187439648" type="string" size="16" encoding="base64"><![CDATA[L3Zhci9ydW4vYXBhY2hlMg==]]></property>
    <property name="APACHE_PID_FILE" fullname="$_ENV['APACHE_PID_FILE']" address="139975187440688" type="string" size="20" encoding="base64"><![CDATA[L3Zhci9ydW4vYXBhY2hlMi5waWQ=]]></property>
    <property name="PATH" fullname="$_ENV['PATH']" address="139975187440984" type="string" size="28" encoding="base64"><![CDATA[L3Vzci9sb2NhbC9iaW46L3Vzci9iaW46L2Jpbg==]]></property>
    <property name="APACHE_LOCK_DIR" fullname="$_ENV['APACHE_LOCK_DIR']" address="139975187441136" type="string" size="17" encoding="base64"><![CDATA[L3Zhci9sb2NrL2FwYWNoZTI=]]></property>
    <property name="APACHE_ARGUMENTS" fullname="$_ENV['APACHE_ARGUMENTS']" address="139975187441424" type="string" size="14" encoding="base64"><![CDATA[LURpbXZ1X3NhbmRib3g=]]></property>
    <property name="LANG" fullname="$_ENV['LANG']" address="139975187441640" type="string" size="1" encoding="base64"><![CDATA[Qw==]]></property>
    <property name="APACHE_RUN_GROUP" fullname="$_ENV['APACHE_RUN_GROUP']" address="139975187441848" type="string" size="8" encoding="base64"><![CDATA[d3d3LWRhdGE=]]></property>
    <property name="APACHE_RUN_USER" fullname="$_ENV['APACHE_RUN_USER']" address="139975187442192" type="string" size="8" encoding="base64"><![CDATA[d3d3LWRhdGE=]]></property>
    <property name="APACHE_LOG_DIR" fullname="$_ENV['APACHE_LOG_DIR']" address="139975187442408" type="string" size="16" encoding="base64"><![CDATA[L3Zhci9sb2cvYXBhY2hlMg==]]></property>
    <property name="PWD" fullname="$_ENV['PWD']" address="139975187442856" type="string" size="1" encoding="base64"><![CDATA[Lw==]]></property>
  </property>
  <property name="_FILES" fullname="$_FILES" address="139975187436464" type="array" children="0" numchildren="0" />
  <property name="_GET" fullname="$_GET" address="139975187435144" type="array" children="0" numchildren="0" />
  <property name="_POST" fullname="$_POST" address="139975187435456" type="array" children="0" numchildren="0" />
  <property name="_REQUEST" fullname="$_REQUEST" address="139975187443192" type="array" children="0" numchildren="0" />
  <property name="_SERVER" fullname="$_SERVER" address="139975187443520" type="array" children="1" numchildren="28">
    <property name="UNIQUE_ID" fullname="$_SERVER['UNIQUE_ID']" address="139975187444584" type="string" size="24" encoding="base64"><![CDATA[VDE0bHY4Q29jQW9BQUQycEFkTUFBQUJm]]></property>
    <property name="PATH" fullname="$_SERVER['PATH']" address="139975187445224" type="string" size="28" encoding="base64"><![CDATA[L3Vzci9sb2NhbC9iaW46L3Vzci9iaW46L2Jpbg==]]></property>
    <property name="SCRIPT_URL" fullname="$_SERVER['SCRIPT_URL']" address="139975187445808" type="string" size="28" encoding="base64"><![CDATA[L2ltcS9nYW1lX2xvZ2ljX3Bhc3N0aHJ1LnBocA==]]></property>
    <property name="SCRIPT_URI" fullname="$_SERVER['SCRIPT_URI']" address="139975187446240" type="string" size="50" encoding="base64"><![CDATA[aHR0cDovL2J3ZWxkZW4tc2FuZGJveC9pbXEvZ2FtZV9sb2dpY19wYXNzdGhydS5waHA=]]></property>
    <property name="HTTP_HOST" fullname="$_SERVER['HTTP_HOST']" address="139975187446800" type="string" size="15" encoding="base64"><![CDATA[YndlbGRlbi1zYW5kYm94]]></property>
    <property name="CONTENT_LENGTH" fullname="$_SERVER['CONTENT_LENGTH']" address="139975187447232" type="string" size="3" encoding="base64"><![CDATA[ODQz]]></property>
    <property name="CONTENT_TYPE" fullname="$_SERVER['CONTENT_TYPE']" address="139975187447792" type="string" size="9" encoding="base64"><![CDATA[dGV4dC9qc29u]]></property>
    <property name="HTTP_X_IMVU_SERVICE_AUTH" fullname="$_SERVER['HTTP_X_IMVU_SERVICE_AUTH']" address="139975187448584" type="string" size="43" encoding="base64"><![CDATA[MTMzMTU3MDExMTpEREEzQ0E4NjJENzhBMjJFMUNBQjYwMTBCODJBOUJDQQ==]]></property>
    <property name="SERVER_SIGNATURE" fullname="$_SERVER['SERVER_SIGNATURE']" address="139975187448184" type="string" size="76" encoding="base64"><![CDATA[PGFkZHJlc3M+QXBhY2hlLzIuMi4xNiAoVWJ1bnR1KSBTZXJ2ZXIgYXQgYndlbGRlbi1zYW5kYm94IFBvcnQgODA8L2FkZHJlc3M+Cg==]]></property>
    <property name="SERVER_SOFTWARE" fullname="$_SERVER['SERVER_SOFTWARE']" address="139975187450048" type="string" size="22" encoding="base64"><![CDATA[QXBhY2hlLzIuMi4xNiAoVWJ1bnR1KQ==]]></property>
    <property name="SERVER_NAME" fullname="$_SERVER['SERVER_NAME']" address="139975187450608" type="string" size="15" encoding="base64"><![CDATA[YndlbGRlbi1zYW5kYm94]]></property>
    <property name="SERVER_ADDR" fullname="$_SERVER['SERVER_ADDR']" address="139975187451168" type="string" size="14" encoding="base64"><![CDATA[MTkyLjE2OC4xMTIuMTA=]]></property>
    <property name="SERVER_PORT" fullname="$_SERVER['SERVER_PORT']" address="139975187451712" type="string" size="2" encoding="base64"><![CDATA[ODA=]]></property>
    <property name="REMOTE_ADDR" fullname="$_SERVER['REMOTE_ADDR']" address="139975187452272" type="string" size="14" encoding="base64"><![CDATA[MTkyLjE2OC4xMTIuMTA=]]></property>
    <property name="DOCUMENT_ROOT" fullname="$_SERVER['DOCUMENT_ROOT']" address="139975187452848" type="string" size="17" encoding="base64"><![CDATA[L21udC9oZ2ZzL3dlYnNpdGU=]]></property>
    <property name="SERVER_ADMIN" fullname="$_SERVER['SERVER_ADMIN']" address="139975187453424" type="string" size="18" encoding="base64"><![CDATA[d2VibWFzdGVyQGltdnUuY29t]]></property>
    <property name="SCRIPT_FILENAME" fullname="$_SERVER['SCRIPT_FILENAME']" address="139975187454352" type="string" size="45" encoding="base64"><![CDATA[L21udC9oZ2ZzL3dlYnNpdGUvaW1xL2dhbWVfbG9naWNfcGFzc3RocnUucGhw]]></property>
    <property name="REMOTE_PORT" fullname="$_SERVER['REMOTE_PORT']" address="139975187455200" type="string" size="5" encoding="base64"><![CDATA[MzkzNzQ=]]></property>
    <property name="GATEWAY_INTERFACE" fullname="$_SERVER['GATEWAY_INTERFACE']" address="139975187455896" type="string" size="7" encoding="base64"><![CDATA[Q0dJLzEuMQ==]]></property>
    <property name="SERVER_PROTOCOL" fullname="$_SERVER['SERVER_PROTOCOL']" address="139975187456464" type="string" size="8" encoding="base64"><![CDATA[SFRUUC8xLjA=]]></property>
    <property name="REQUEST_METHOD" fullname="$_SERVER['REQUEST_METHOD']" address="139975187457008" type="string" size="4" encoding="base64"><![CDATA[UE9TVA==]]></property>
    <property name="QUERY_STRING" fullname="$_SERVER['QUERY_STRING']" address="139975187457552" type="string" size="0" encoding="base64" />
    <property name="REQUEST_URI" fullname="$_SERVER['REQUEST_URI']" address="139975187458144" type="string" size="28" encoding="base64"><![CDATA[L2ltcS9nYW1lX2xvZ2ljX3Bhc3N0aHJ1LnBocA==]]></property>
    <property name="SCRIPT_NAME" fullname="$_SERVER['SCRIPT_NAME']" address="139975187458736" type="string" size="28" encoding="base64"><![CDATA[L2ltcS9nYW1lX2xvZ2ljX3Bhc3N0aHJ1LnBocA==]]></property>
    <property name="PHP_SELF" fullname="$_SERVER['PHP_SELF']" address="139975187459320" type="string" size="28" encoding="base64"><![CDATA[L2ltcS9nYW1lX2xvZ2ljX3Bhc3N0aHJ1LnBocA==]]></property>
    <property name="REQUEST_TIME" fullname="$_SERVER['REQUEST_TIME']" address="139975187459528" type="int"><![CDATA[1331570111]]></property>
    <property name="argv" fullname="$_SERVER['argv']" address="139975187459744" type="array" children="0" numchildren="0" />
    <property name="argc" fullname="$_SERVER['argc']" address="139975187459944" type="int"><![CDATA[0]]></property>
  </property>
</response>
2012-03-12 09:36:10,488 [ 449743]  DEBUG - .connection.PhpDebugConnection - 10669339#<-ContextGetResponsecom.jetbrains.php.debug.xdebug.dbgp.messages.ContextGetResponse@116fdd0
2012-03-12 09:36:11,709 [ 450964]  DEBUG - .connection.PhpDebugConnection - 10669339#---input stream is finished
2012-03-12 09:36:11,709 [ 450964]  DEBUG - .connection.PhpDebugConnection - 10669339#---stop writing
2012-03-12 09:36:11,709 [ 450964]  DEBUG - .connection.PhpDebugConnection - 10669339#---stop reading
2012-03-12 09:36:11,709 [ 450964]  DEBUG - .connection.PhpDebugConnection - 10669339#----connection stopped

1 comment
Comment actions Permalink

Hello Bill,

Sorry for delay. Most likely your issue related to Xdebug bugs with evaluation. What version of Xdebug do you use?

Thank you for feedback!

0

Please sign in to leave a comment.