Xdebug configuration is fine, but PhpStorm is unable to debug -


i'm using phpstorm version 8.0.4, server debian wheeze php 5.4.4 , xdebug 2.1.1.

on phpstorm have 2 projects. debug on project works fine, debugger stops @ at breakpoint , i'm able watch variables , step functions.

on project b, has same debugging configuration of project a, debugger not stop @ breakpoints.

both project stored in same server, same apache, php , xdebug configuration. use different virtual hosts. differences have encountered on project phpstorm sets cookie xdebug_session on browser ide key, on project b cookie not set.

next sample debug session on project b:

log opened @ 2015-08-25 07:01:36 i: checking remote connect address. i: remote address found, connecting <client ip>:9000. i: connected client. :-) -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/projectb/script.php" language="php" protocol_version="1.0" appid="3137"><engine version="2.2.1"><![cdata[xdebug]]></engine><author><![cdata[derick rethans]]></author><url><![cdata[http://xdebug.org]]></url><copyright><![cdata[copyright (c) 2002-2012 derick rethans]]></copyright></init>  <- feature_set -i 1 -n show_hidden -v 1 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="show_hidden" success="1"></response>  <- feature_set -i 2 -n max_depth -v 1 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_depth" success="1"></response>  <- feature_set -i 3 -n max_children -v 100 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="max_children" success="1"></response>  <- status -i 4 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="status" transaction_id="4" status="starting" reason="ok"></response>  <- step_into -i 5 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="5" status="break" reason="ok"><xdebug:message filename="file:///var/www/projectb/script.php" lineno="2"></xdebug:message></response>  <- run -i 6 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run" transaction_id="6" status="stopping" reason="ok"></response>  <- stop -i 7 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stop" transaction_id="7" status="stopped" reason="ok"></response>  log closed @ 2015-08-25 07:01:36 

update

the server on remote machine, run php (and xdebug) remotely using ssh. here sample script i'm trying debug:

<?php $a=1; $b=2; $c=$a+$b; echo "c is: ".$c; 

i've breakpoint on line 2 ($a=1;). xdebug log:

log opened @ 2015-08-25 11:06:24 i: checking remote connect address. i: remote address found, connecting <client ip>:9000. i: connected client. :-) -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/vhost/test.php" language="php" protocol_version="1.0" appid="3602"><engine version="2.2.1"><![cdata[xdebug]]></engine><author><![cdata[derick rethans]]></author><url><![cdata[http://xdebug.org]]></url><copyright><![cdata[copyright (c) 2002-2012 derick rethans]]></copyright></init>  <- feature_set -i 1 -n show_hidden -v 1 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="show_hidden" success="1"></response>  <- feature_set -i 2 -n max_depth -v 1 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_depth" success="1"></response>  <- feature_set -i 3 -n max_children -v 100 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="max_children" success="1"></response>  <- status -i 4 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="status" transaction_id="4" status="starting" reason="ok"></response>  <- step_into -i 5 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="5" status="break" reason="ok"><xdebug:message filename="file:///var/www/vhost/test.php" lineno="2"></xdebug:message></response>  <- run -i 6 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run" transaction_id="6" status="stopping" reason="ok"></response>  <- stop -i 7 -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stop" transaction_id="7" status="stopped" reason="ok"></response>  log closed @ 2015-08-25 11:06:24 

don't tell me why, solved problem pressing "start listening php debug connections" button in debug menu.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -