View Issue Details

IDProjectCategoryView StatusLast Update
0002178XdebugStep Debuggingpublic2023-08-01 09:48
Reportertesthahaha Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionunable to reproduce 
Product Version3.2.0 
Summary0002178: cant set breakpoint
Description

i can debug if set break at first line in php scripts in phpstorm.But it quit when i set a breakpoint.
php verseion:

PHP 8.0.16 (cli) (built: Apr 30 2023 01:26:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.16, Copyright (c) Zend Technologies
    with Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans

xdebug log:

[10534] Log opened at 2023-05-05 09:16:52.700598
[10534] [Step Debug] INFO: Connecting to configured address/port: 192.168.5.235:9000.
[10534] [Step Debug] INFO: Connected to debugging client: 192.168.5.235:9000 (through xdebug.client_host/xdebug.client_port).
[10534] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///var/html/index.php" language="PHP" xdebug:language_version="8.0.16" protocol_version="1.0" appid="10534" idekey="PHPSTORM"><engine version="3.2.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2022 by Derick Rethans]]></copyright></init>

[10534] [Step Debug] <- feature_set -i 1 -n show_hidden -v 1
[10534] [Step Debug] -> <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>

[10534] [Step Debug] <- feature_set -i 2 -n max_depth -v 1
[10534] [Step Debug] -> <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>

[10534] [Step Debug] <- feature_set -i 3 -n max_children -v 100
[10534] [Step Debug] -> <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>

[10534] [Step Debug] <- feature_set -i 4 -n extended_properties -v 1
[10534] [Step Debug] -> <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>

[10534] [Step Debug] <- feature_set -i 5 -n notify_ok -v 1
[10534] [Step Debug] -> <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>

[10534] [Step Debug] <- feature_set -i 6 -n resolved_breakpoints -v 1
[10534] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="6" feature="resolved_breakpoints" success="1"></response>

[10534] [Step Debug] <- stdout -i 7 -c 1
[10534] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stdout" transaction_id="7" success="1"></response>

[10534] [Step Debug] <- status -i 8
[10534] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="status" transaction_id="8" status="starting" reason="ok"></response>

[10534] [Step Debug] <- step_into -i 9
[10534] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="9" status="break" reason="ok"><xdebug:message filename="file:///var/html/index.php" lineno="2"></xdebug:message></response>

[10534] [Step Debug] <- eval -i 10 -- aXNzZXQoJF9TRVJWRVJbJ1BIUF9JREVfQ09ORklHJ10p
[10534] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="10"><property type="bool"><![CDATA[0]]></property></response>

[10534] [Step Debug] <- eval -i 11 -- aXNzZXQoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[10534] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="11"><property type="bool"><![CDATA[1]]></property></response>

[10534] [Step Debug] <- eval -i 12 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[10534] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="12"><property type="string" size="13" encoding="base64"><![CDATA[MTkyLjE2OC41LjI0MA==]]></property></response>

[10534] [Step Debug] <- eval -i 13 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9QT1JUJ10p
[10534] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="13"><property type="string" size="2" encoding="base64"><![CDATA[ODA=]]></property></response>

[10534] [Step Debug] <- eval -i 14 -- KHN0cmluZykoJF9TRVJWRVJbJ1JFUVVFU1RfVVJJJ10p
[10534] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="14"><property type="string" size="1" encoding="base64"><![CDATA[Lw==]]></property></response>

[10534] [Step Debug] <- breakpoint_set -i 15 -t line -f file:///var/html/index.php -n 21
[10536] Log opened at 2023-05-05 09:16:52.759470
[10536] [Step Debug] INFO: Connecting to configured address/port: 192.168.5.235:9000.
[10536] [Step Debug] INFO: Connected to debugging client: 192.168.5.235:9000 (through xdebug.client_host/xdebug.client_port).
[10536] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///var/html/index.php" language="PHP" xdebug:language_version="8.0.16" protocol_version="1.0" appid="10536" idekey="PHPSTORM"><engine version="3.2.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2022 by Derick Rethans]]></copyright></init>

[10536] [Step Debug] <- feature_set -i 1 -n show_hidden -v 1
[10536] [Step Debug] -> <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>

[10536] [Step Debug] <- feature_set -i 2 -n max_depth -v 1
[10536] [Step Debug] -> <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>

[10536] [Step Debug] <- feature_set -i 3 -n max_children -v 100
[10536] [Step Debug] -> <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>

[10536] [Step Debug] <- feature_set -i 4 -n extended_properties -v 1
[10536] [Step Debug] -> <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>

[10536] [Step Debug] <- feature_set -i 5 -n notify_ok -v 1
[10536] [Step Debug] -> <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>

[10536] [Step Debug] <- feature_set -i 6 -n resolved_breakpoints -v 1
[10536] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="6" feature="resolved_breakpoints" success="1"></response>

[10536] [Step Debug] <- stdout -i 7 -c 1
[10536] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stdout" transaction_id="7" success="1"></response>

[10536] [Step Debug] <- status -i 8
[10536] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="status" transaction_id="8" status="starting" reason="ok"></response>

[10536] [Step Debug] <- step_into -i 9
[10536] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="9" status="break" reason="ok"><xdebug:message filename="file:///var/html/index.php" lineno="2"></xdebug:message></response>

[10536] [Step Debug] <- eval -i 10 -- aXNzZXQoJF9TRVJWRVJbJ1BIUF9JREVfQ09ORklHJ10p
[10536] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="10"><property type="bool"><![CDATA[0]]></property></response>

[10536] [Step Debug] <- eval -i 11 -- aXNzZXQoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[10536] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="11"><property type="bool"><![CDATA[1]]></property></response>

[10536] [Step Debug] <- eval -i 12 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[10536] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="12"><property type="string" size="13" encoding="base64"><![CDATA[MTkyLjE2OC41LjI0MA==]]></property></response>

[10536] [Step Debug] <- eval -i 13 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9QT1JUJ10p
[10536] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="13"><property type="string" size="2" encoding="base64"><![CDATA[ODA=]]></property></response>

[10536] [Step Debug] <- eval -i 14 -- KHN0cmluZykoJF9TRVJWRVJbJ1JFUVVFU1RfVVJJJ10p
[10536] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="14"><property type="string" size="1" encoding="base64"><![CDATA[Lw==]]></property></response>

[10536] [Step Debug] <- breakpoint_set -i 15 -t line -f file:///var/html/index.php -n 21
[10572] Log opened at 2023-05-05 09:16:53.178363
[10572] [Step Debug] INFO: Connecting to configured address/port: 192.168.5.235:9000.
[10572] [Step Debug] INFO: Connected to debugging client: 192.168.5.235:9000 (through xdebug.client_host/xdebug.client_port).
[10572] [Step Debug] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///var/html/index.php" language="PHP" xdebug:language_version="8.0.16" protocol_version="1.0" appid="10572" idekey="PHPSTORM"><engine version="3.2.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2022 by Derick Rethans]]></copyright></init>

[10572] [Step Debug] <- feature_set -i 1 -n show_hidden -v 1
[10572] [Step Debug] -> <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>

[10572] [Step Debug] <- feature_set -i 2 -n max_depth -v 1
[10572] [Step Debug] -> <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>

[10572] [Step Debug] <- feature_set -i 3 -n max_children -v 100
[10572] [Step Debug] -> <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>

[10572] [Step Debug] <- feature_set -i 4 -n extended_properties -v 1
[10572] [Step Debug] -> <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>

[10572] [Step Debug] <- feature_set -i 5 -n notify_ok -v 1
[10572] [Step Debug] -> <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>

[10572] [Step Debug] <- feature_set -i 6 -n resolved_breakpoints -v 1
[10572] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="6" feature="resolved_breakpoints" success="1"></response>

[10572] [Step Debug] <- stdout -i 7 -c 1
[10572] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stdout" transaction_id="7" success="1"></response>

[10572] [Step Debug] <- status -i 8
[10572] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="status" transaction_id="8" status="starting" reason="ok"></response>

[10572] [Step Debug] <- step_into -i 9
[10572] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="9" status="break" reason="ok"><xdebug:message filename="file:///var/html/index.php" lineno="2"></xdebug:message></response>

[10572] [Step Debug] <- eval -i 10 -- aXNzZXQoJF9TRVJWRVJbJ1BIUF9JREVfQ09ORklHJ10p
[10572] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="10"><property type="bool"><![CDATA[0]]></property></response>

[10572] [Step Debug] <- eval -i 11 -- aXNzZXQoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[10572] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="11"><property type="bool"><![CDATA[1]]></property></response>

[10572] [Step Debug] <- eval -i 12 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p
[10572] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="12"><property type="string" size="13" encoding="base64"><![CDATA[MTkyLjE2OC41LjI0MA==]]></property></response>

[10572] [Step Debug] <- eval -i 13 -- KHN0cmluZykoJF9TRVJWRVJbJ1NFUlZFUl9QT1JUJ10p
[10572] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="13"><property type="string" size="2" encoding="base64"><![CDATA[ODA=]]></property></response>

[10572] [Step Debug] <- eval -i 14 -- KHN0cmluZykoJF9TRVJWRVJbJ1JFUVVFU1RfVVJJJ10p
[10572] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="14"><property type="string" size="1" encoding="base64"><![CDATA[Lw==]]></property></response>

[10572] [Step Debug] <- breakpoint_set -i 15 -t line -f file:///var/html/index.php -n 21
TagsNo tags attached.
Operating System
PHP Version8.0.10-8.0.19

Relationships

related to 0002175 closedderick Crash with EXC_BAD_ACCESS in xdebug_str_create 

Activities

derick

2023-05-24 16:29

administrator   ~0006568

Can you still reproduce this with Xdebug 3.2.1? If so, can you then please create a back trace, as is explained (in great detail) at https://xdebug.org/reporting-bugs

alexander.willner

2023-05-30 08:25

reporter   ~0006569

Same here with PHP 8.2.6

% uname -a
Darwin MBA22-Alexander 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:43 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T8112 arm64

% php -version
PHP 8.2.6 (cli) (built: May 11 2023 12:51:38) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.6, Copyright (c) Zend Technologies
with Xdebug v3.2.1, Copyright (c) 2002-2023, by Derick Rethans

% lldb php -- -t web web/router.php
...
Process 98526 stopped

  • thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x206b726f77207265)
    frame #0: 0x0000000102827fbc xdebug.soxdebug_lib_register_compiled_variables + 76 xdebug.soxdebug_lib_register_compiled_variables:
    -> 0x102827fbc <+76>: ldr x8, [x8]
    0x102827fc0 <+80>: add x0, x8, #0x18
    0x102827fc4 <+84>: ldr x1, [x8, #0x10]
    0x102827fc8 <+88>: bl 0x10284a340 ; symbol stub for: xdebug_str_create
    Target 0: (php) stopped.

alexander.willner

2023-05-30 08:28

reporter   ~0006570

bt all log from lldb attached

derick

2023-07-04 16:55

administrator   ~0006582

This looks the same/similar than report 0002175, but neither of them includes enough information for me to debug this. I can't manage this on Linux, with a Symfony app, but it is possible that I don't run it in the same way as you do. Is there a way for you to make a code repository that I could checkout and run myself? Please provide as much instructions as possible, as I don't really know much about setting up and running Symfony :-)

derick

2023-07-13 13:02

administrator   ~0006595

I think this is now the same bug as 0002186, for which I have just made a pull request. It would be great if you could test this branch with your set-up, just to have an extra verification that this is indeed the case: https://github.com/derickr/xdebug/tree/issue2186-trampoline-get-compiled-variables

derick

2023-08-01 09:48

administrator   ~0006621

I can't reproduce this, and there hasn't been any new information for a while, so I am closing this, especially because I think this was the same bug as 0002186 which has been addressed in the 3.2.2 release.