debugger don't stop with Xdebug and wamp.
Hi,
I try to make xdebug work with wamp but that only work with stop at first line.
If I manually put a stop at first line or check break at first line, that stop, but don't show variables of index.php. $a don't show under variables in the picture bellow :

If I put a stop further, that don't work : under variable, Phpstorm only show 'connected' and under frames : 'frames are not available'. The browser stay in infinite load. That is showed in the picture bellow :

And if I try with no configuration and I check start listening for php debug connections : when I reload browser, it load infinitly and nothing happen in Phpstorm.
here is my xdebug config in php.ini :
[xdebug]
zend_extension ="c:/wamp64/bin/php/php7.1.9/zend_ext/php_xdebug-2.5.5-7.0-vc14-x86_64.dll"
xdebug.remote_enable = 1
; xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = Off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="c:/wamp64/tmp"
xdebug.show_local_vars=0
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_log ="c:/wamp64/tmp/xdebug.txt"
did I forget something?
How can I resolve that?
Thanks in advance!
请先登录再写评论。
Is there any specific reason why are you using XDebug 2.5.5?
Please take note that 2.8.0 is already available:
https://xdebug.org/download
Also, please share or check XDebug log file "c:\wamp64\tmp\xdebug.txt", is there anything interesting inside?
It's a mistake, I use the 2.8.0 but the zend_extension line was wrong, I've corrected it with this : zend_extension = c:\wamp64\bin\php\php7.1.9\ext\php_xdebug-2.8.0-7.1-vc14-x86_64.dll
But nothing change.
here is a log :
[8592] Log opened at 2019-11-08 17:32:53
[8592] I: Connecting to configured address/port: localhost:9000.
[8592] I: Connected to client. :-)
[8592] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///C:/wamp64/www/experiment/index.php" language="PHP" xdebug:language_version="7.1.34" protocol_version="1.0" appid="8592" idekey="18199"><engine version="2.8.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2019 by Derick Rethans]]></copyright></init>
[8592] <- feature_set -i 1 -n show_hidden -v 1
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="show_hidden" success="1"></response>
[8592] <- feature_set -i 2 -n max_depth -v 1
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_depth" success="1"></response>
[8592] <- feature_set -i 3 -n max_children -v 100
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="max_children" success="1"></response>
[8592] <- feature_set -i 4 -n extended_properties -v 1
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="4" feature="extended_properties" success="1"></response>
[8592] <- feature_set -i 5 -n notify_ok -v 1
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" feature="notify_ok" success="1"></response>
[8592] <- stdout -i 6 -c 1
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stdout" transaction_id="6" success="1"></response>
[8592] <- status -i 7
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="status" transaction_id="7" status="starting" reason="ok"></response>
[8592] <- step_into -i 8
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="8" status="break" reason="ok"><xdebug:message filename="file:///C:/wamp64/www/experiment/index.php" lineno="5"></xdebug:message></response>
[8592] <- breakpoint_set -i 9 -t line -f file://C:/wamp64/www/experiment/index.php -n 9
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="9" id="85920004"></response>
[8592] <- stack_get -i 10
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="10"><stack where="{main}" level="0" type="file" filename="file:///C:/wamp64/www/experiment/index.php" lineno="5"></stack></response>
[8592] <- run -i 11
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="11" status="break" reason="ok"><xdebug:message filename="file:///C:/wamp64/www/experiment/index.php" lineno="9"></xdebug:message></response>
[8592] <- stop -i 12
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stop" transaction_id="12" status="stopped" reason="ok"></response>
[8592] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stop" transaction_id="12" status="stopping" reason="ok"></response>
[8592] Log closed at 2019-11-08 17:33:50
it's a log from this :
Hi there,
What is your PhpStorm version?
Hi,
My version is 2018.1.4, build 181.5087.24.
@Rinaldobenaccetta
You need to either upgrade PhpStorm to 2018.3 or newer .. or downgrade Xdebug to 2.6.x
Xdebug introduced some small changes in debug protocol in 2.7.0 and your IDE version is unable to properly interpret (better say "validate") Xdebug responses.
I uppgraded Phpstorm to 2019.2.4 and all work fine.
Than you! :)