Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop working on vscode 1.2 #39

Closed
herbertpimentel opened this issue Jun 7, 2016 · 6 comments
Closed

stop working on vscode 1.2 #39

herbertpimentel opened this issue Jun 7, 2016 · 6 comments
Labels

Comments

@herbertpimentel
Copy link

herbertpimentel commented Jun 7, 2016

After update vs code to version 1.2

Debug stops to work after the first break point step over. It does not crash/stop and no message is displayed but the indicator of current execution statement on code editor desapear and variables from the left pane also desapear. If I stop the debug and play again, it stops on breakpoint again but same problem ocurrs after step over.

I downgraded to version 1.1 and the bug does not exists.

PHP version: 7.0.4
XDebug version: v2.4.0
Adapter version:

Your launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for XDebug",
            "type": "php",
            "request": "launch",
            "port": 9000,
            "log" : true
        }
    ]
}

XDebug php.ini config:

zend_extension = D:\Tools\xampp\php\ext\php_xdebug-2.4.0-7.0-vc14.dll
xdebug.remote_autostart = "On"
xdebug.remote_enable = "On"
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_log = D:\Tools\xampp\tmp\xdebug.log

XDebug logfile (from setting xdebug.remote_log in php.ini):

Log opened at 2016-06-06 20:43:20
I: Connecting to configured address/port: 127.0.0.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///D:/Dev/etucujurisbackend/src/cmd.php" language="PHP" xdebug:language_version="7.0.1-dev" protocol_version="1.0" appid="8564" idekey="Herbert"><engine version="2.4.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2016 by Derick Rethans]]></copyright></init>

<- 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 9999
-> <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>

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

<- breakpoint_list -i 4
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="4"></response>

<- breakpoint_set -i 5 -t line -f file:///d:/Dev/etucujurisbackend/src/cmd.php -n 4
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="5" id="85640001"></response>

<- breakpoint_list -i 6
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="6"><breakpoint type="line" filename="file:///D:/Dev/etucujurisbackend/src/cmd.php" lineno="4" state="enabled" hit_count="0" hit_value="0" id="85640001"></breakpoint></response>

<- breakpoint_list -i 7
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="7"><breakpoint type="line" filename="file:///D:/Dev/etucujurisbackend/src/cmd.php" lineno="4" state="enabled" hit_count="0" hit_value="0" id="85640001"></breakpoint></response>

<- run -i 8
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run" transaction_id="8" status="break" reason="ok"><xdebug:message filename="file:///D:/Dev/etucujurisbackend/src/cmd.php" lineno="4"></xdebug:message></response>

<- stack_get -i 9
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="9"><stack where="{main}" level="0" type="file" filename="file:///D:/Dev/etucujurisbackend/src/cmd.php" lineno="4"></stack></response>

<- context_names -i 10 -d 0
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="context_names" transaction_id="10"><context name="Locals" id="0"></context><context name="Superglobals" id="1"></context><context name="User defined constants" id="2"></context></response>

<- context_get -i 11 -d 0 -c 0
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="11" context="0"><property name="$var1" fullname="$var1" type="uninitialized"></property><property name="$var2" fullname="$var2" type="uninitialized"></property></response>

<- step_over -i 12
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="12" status="break" reason="ok"><xdebug:message filename="file:///D:/Dev/etucujurisbackend/src/cmd.php" lineno="5"></xdebug:message></response>

<- stack_get -i 13
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="13"><stack where="{main}" level="0" type="file" filename="file:///D:/Dev/etucujurisbackend/src/cmd.php" lineno="5"></stack></response>

<- context_names -i 14 -d 0
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="context_names" transaction_id="14"><context name="Locals" id="0"></context><context name="Superglobals" id="1"></context><context name="User defined constants" id="2"></context></response>

<- context_get -i 15 -d 0 -c 0
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="15" context="0"><property name="$var1" fullname="$var1" type="int"><![CDATA[1]]></property><property name="$var2" fullname="$var2" type="uninitialized"></property></response>

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

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

Log closed at 2016-06-06 20:44:03

Adapter logfile (from setting "log": true in launch.json):

Code snippet to reproduce:

$var1 = 1;
$var2 = 2;

print $var1 + $var2;

snip_20160606174352

@eriktufvesson
Copy link

+1 Same problem for me with vs code v1.2 and vscode-php-debug v1.9.0

@felixfbecker
Copy link
Contributor

Very good bug report!
I can reproduce, but the behaviour of the adapter seems to be correct. I will forward this to vscode repo.

@felixfbecker
Copy link
Contributor

microsoft/vscode#7325

@felixfbecker
Copy link
Contributor

I released an update which should fix the bug.

@eriktufvesson
Copy link

Thanks! It works now.

@AlessioCorridori
Copy link

I was stuck with the same problem. Thanks for the update, now it works perfectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants