View Issue Details

IDProjectCategoryView StatusLast Update
0000918XdebugUncategorizedpublic2013-05-14 18:16
ReporterMaskime Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionunable to reproduce 
Platform64 BitsOSDebianOS Version6.0.6
Summary0000918: XDebug connect to IDE but browser says Empty response
Description

I'm using IntelliJ with PHP Plugin (which should be the same as PHPStorm).

xDebug does send connection and IDE break on breakpoint.
But as soon as it does this, the browser instead of waiting for the script end, it sends an error 324 (chrome)

I'm using .htaccess config mode with :
php_value xdebug.remote_connect_back 0
php_value xdebug.remote_enable 1
php_value xdebug.remote_host 10.13.11.111

Php version on server is :
#php --version
PHP 5.3.19-1~dotdeb.0 with Suhosin-Patch (cli) (built: Nov 24 2012 07:05:58)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

Additional Information

The reason I'm using .htaccess conf mode is because when using xdebug.remote_connect_back 1 in the xdebug.ini on server side, it would never find my IDE.

TagsNo tags attached.
Operating System
PHP Version5.3.15-5.3.19

Activities

Maskime

2013-01-24 15:05

reporter   ~0002417

Here is content of xdebug.remote_log on fail attemp :
Log opened at 2013-01-24 15:03:26
I: Connecting to configured address/port: 10.13.11.111:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///nfs-dev/FRANCE-VPG/mfaye/www/bg_builder_intellij/web/builder.php" language="PHP" protocol_version="1.0" appid="19098" idekey="18262"><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 by Derick Rethans]]></copyright></init>

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

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

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

<- step_into -i 4
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="4" status="break" reason="ok"><xdebug:message filename="file:///nfs-dev/FRANCE-VPG/mfaye/www/bg_builder_intellij/web/builder.php" lineno="5"></xdebug:message></response>

<- breakpoint_set -i 5 -t line -f file:///nfs-dev/FRANCE-VPG/mfaye/www/bg_builder_intellij/web/builder.php -n 7
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="5" id="190980001"></response>

<- stack_get -i 6
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="6"><stack where="{main}" level="0" type="file" filename="file:///nfs-dev/FRANCE-VPG/mfaye/www/bg_builder_intellij/web/builder.php" lineno="5"></stack></response>

<- run -i 7
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run" transaction_id="7" status="break" reason="ok"><xdebug:message filename="file:///nfs-dev/FRANCE-VPG/mfaye/www/bg_builder_intellij/web/builder.php" lineno="7"></xdebug:message></response>

<- stack_get -i 8
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="8"><stack where="{main}" level="0" type="file" filename="file:///nfs-dev/FRANCE-VPG/mfaye/www/bg_builder_intellij/web/builder.php" lineno="7"></stack></response>

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

<- context_get -i 10 -d 0 -c 0

derick

2013-03-09 22:12

administrator   ~0002443

First, check whether PHP crashed (by checking your webserver's log file). Then, see if you can reproduce this when you run PHP as a script on the command line, and not through the webserver. If you can do that, then, see if you can get a GDB backtrace with:

gdb --args /full/path/to/php yourscript.php

And then type:
run

When it crashes, type:
bt full

You could also attempt to try the latest version from github (the xdebug_2_2) branch?

derick

2013-05-14 18:16

administrator   ~0002464

Can't reproduce and no feedback supplied.

Issue History

Date Modified Username Field Change
2013-01-24 14:59 Maskime New Issue
2013-01-24 15:05 Maskime Note Added: 0002417
2013-03-09 22:12 derick Note Added: 0002443
2013-03-09 22:12 derick Assigned To => derick
2013-03-09 22:12 derick Status new => feedback
2013-05-14 18:16 derick Note Added: 0002464
2013-05-14 18:16 derick Status feedback => resolved
2013-05-14 18:16 derick Resolution open => unable to reproduce
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized