View Issue Details

IDProjectCategoryView StatusLast Update
0001869XdebugStep Debuggingpublic2021-03-17 08:40
Reporterderick Assigned Toderick  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionunable to reproduce 
Summary0001869: Blocked debugging with dbgpClient
Description

xdebug configuration in php.ini

<pre>
[xdbug]
zend_extension = /home/xiaoju/php7/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so
xdebug.idekey=ysl
xdebug.remote_host=127.0.0.1
xdebug.remote_enable=on
xdebug.remote_port = 9001
xdebug.remote_handler = dbgp
xdebug.auto_trace = 1
xdebug.remote_log = /tmp/xdebug.log
</pre>

run command in Terminal(T1):
<pre>

$./dbgpClient -p 9001 -f
</pre>
the output as follow:
<pre>
Xdebug Simple DBGp client (0.4)
Copyright 2019-2020 by Derick Rethans
In dumb client mode

Waiting for debug server to connect on port 9001.
</pre>

then I use postman client to request the API, the T1 Ternimal output as follow:
<pre>
Connect from 127.0.0.1:36082
DBGp/1.0: Xdebug 2.8.1 — For PHP 7.4.9
Debugging file:///home/xiaoju/webroot/gulfstream/application/pre-sale/v1/index.php (ID: 27632/ysl)
(cmd)
</pre>

and open another Ternimal(T2), check xdebug's log:
tail -f /tmp/xdebug.log, the output as follow:
<pre>
[45220] Log opened at 2020-10-27 07:09:23
[45220] I: Connecting to configured address/port: 127.0.0.1:9000.
[45220] I: Connected to client. :-)
[45220] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug&quot; fileuri="file:///home/xiaoju/webroot/gulfstream/application/pre-sale/v1/index.php" language="PHP" xdebug:language_version="7.4.9" protocol_version="1.0" appid="45220" idekey="ysl"><engine version="2.8.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]>&lt;/url>&lt;copyright>&lt;![CDATA[Copyright (c) 2002-2019 by Derick Rethans]]></copyright></init>
</pre>

that means the debug session established, it works. but after a while (without stats) the T1 output:
Error while handling connection: EOF
Disconnect

then I request again in postman, T1 output as follow:
<pre>
Connect from 127.0.0.1:50446
DBGp/1.0: Xdebug 2.8.1 — For PHP 7.4.9
Debugging file:///home/xiaoju/webroot/gulfstream/application/pre-sale/v1/index.php (ID: 2155/ysl)
1 | feature_get
1 | supports_async: supported > 0

(cmd)
</pre>

that means the request is successful captured. but from now on ,T1 is blocked, not response to any keyboard input, even with CTR + C.

I have to open another Ternimal to kill the blocked DBGp Client and run it again.

TagsNo tags attached.
Operating System
PHP Version7.4.0-7.4.4

Activities

derick

2020-11-03 17:39

administrator   ~0005497

I don't really know what postman is --- could you try to reproduce this with two simple command line scripts in two different terminals instead? The demo scripts could just be something simple as

<pre>
<?php echo strrev("HI"); ?>
</pre>

derick

2021-03-17 08:40

administrator   ~0005722

Apparently I'm the reporter (I doubt it), but I can't remember this, and there is no feedback either, so I'm closing it out.

Issue History

Date Modified Username Field Change
2020-10-27 13:33 derick New Issue
2020-11-03 17:39 derick Assigned To => derick
2020-11-03 17:39 derick Status new => feedback
2020-11-03 17:39 derick Note Added: 0005497
2021-03-17 08:40 derick Status feedback => resolved
2021-03-17 08:40 derick Resolution open => unable to reproduce
2021-03-17 08:40 derick Note Added: 0005722