Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Variables view empty when usign xdebug
icon5.gif  Variables view empty when usign xdebug [message #522596] Tue, 23 March 2010 10:07 Go to next message
No real name is currently offline No real nameFriend
Messages: 3
Registered: March 2010
Junior Member
Hi everyone,

I'm using xdebug and it's working so far. I can debug php scripts and step through the code. However the variables view in eclipse is always completely empty.

I'm using XAMPP 1.7.2 with php 5.3.0 and the latest beta of xdebug (Xdebug 2.1.0beta3). When adding an expression to a variable, the value of the variable is displayed.

Did anybody faced the same problem or has a hint what could be wrong?

Thx in advance!!!!
Re: Variables view empty when usign xdebug [message #522636 is a reply to message #522596] Tue, 23 March 2010 12:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotremovemail.com

I have tried a straight PHP script on my setup
PDT 2.1sr2, windows xp, php5.3.2, xdebug 2.1beta2 and xdebug 2.1beta3
and I can see variables, so

what version of PDT are you using ?

could you create a simple script that recreates the proplem and generate
an xdebug log (xdebug_log="c:/xdebuglog.txt" in your ini file) and post
the info here ?

Thanks
Dave Kelsey


On 23/03/10 10:07, stephanie_ehrling@web.de wrote:
> Hi everyone,
>
> I'm using xdebug and it's working so far. I can debug php scripts and
> step through the code. However the variables view in eclipse is always
> completely empty.
> I'm using XAMPP 1.7.2 with php 5.3.0 and the latest beta of xdebug
> (Xdebug 2.1.0beta3). When adding an expression to a variable, the value
> of the variable is displayed.
> Did anybody faced the same problem or has a hint what could be wrong?
>
> Thx in advance!!!!
Re: Variables view empty when usign xdebug [message #522659 is a reply to message #522636] Tue, 23 March 2010 14:09 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 3
Registered: March 2010
Junior Member
I'm using PDT 2.1-SR2.

I tried to debug this simple script:

<?php
$myvar = 5;

echo $myvar;
echo $mydoublevar = double($myvar);

function double($x){
    return $x*2;    
}


The output in the xdebug log file is:

Log opened at 2010-03-23 14:01:23
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///C:/workspace/hellodebugger/index.php" language="PHP" protocol_version="1.0" appid="6036" idekey="ECLIPSE_DBGP"><engine version="2.1.0rc1-dev"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2010 by Derick Rethans]]></copyright></init>

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

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

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

<- feature_get -i 411 -n encoding
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="411" feature_name="encoding" supported="1"><![CDATA[iso-8859-1]]></response>

<- feature_get -i 412 -n supports_async
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="412" feature_name="supports_async" supported="1"><![CDATA[0]]></response>

<- stdout -i 413 -c 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stdout" transaction_id="413" success="1"></response>

<- stderr -i 414 -c 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stderr" transaction_id="414" success="0"></response>

<- breakpoint_set -i 415 -t line -f file:///C:%5Cworkspace%5Chellodebugger%5Cindex.php -n 2
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="415" id="60360029"></response>

<- breakpoint_set -i 416 -t line -f file:///C:%5Cworkspace%5Chellodebugger%5Cindex.php -n 4
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="416" id="60360030"></response>

<- breakpoint_set -i 417 -t line -f file:///C:%5Cworkspace%5Chellodebugger%5Cindex.php -n 5
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="417" id="60360031"></response>

<- step_into -i 418
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="418" status="break" reason="ok"><xdebug:message filename="file:///C:/workspace/hellodebugger/index.php" lineno="2"></xdebug:message></response>

<- stack_get -i 419
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="419"><stack where="{main}" level="0" type="file" filename="file:///C:/workspace/hellodebugger/index.php" lineno="2"></stack></response>

<- step_over -i 420
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="420" status="break" reason="ok"><xdebug:message filename="file:///C:/workspace/hellodebugger/index.php" lineno="4"></xdebug:message></response>

<- stack_get -i 421
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="421"><stack where="{main}" level="0" type="file" filename="file:///C:/workspace/hellodebugger/index.php" lineno="4"></stack></response>

<- step_over -i 422
-> <stream xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" type="stdout" encoding="base64"><![CDATA[NQ==]]></stream>

-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="422" status="break" reason="ok"><xdebug:message filename="file:///C:/workspace/hellodebugger/index.php" lineno="5"></xdebug:message></response>

<- stack_get -i 423
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="423"><stack where="{main}" level="0" type="file" filename="file:///C:/workspace/hellodebugger/index.php" lineno="5"></stack></response>

<- step_over -i 424
-> <stream xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" type="stdout" encoding="base64"><![CDATA[MTA=]]></stream>

-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="424" status="break" reason="ok"><xdebug:message filename="file:///C:/workspace/hellodebugger/index.php" lineno="7"></xdebug:message></response>

<- stack_get -i 425
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="425"><stack where="{main}" level="0" type="file" filename="file:///C:/workspace/hellodebugger/index.php" lineno="7"></stack></response>

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

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

Log closed at 2010-03-23 14:01:32


Any ideas?
Re: Variables view empty when usign xdebug [message #522665 is a reply to message #522659] Tue, 23 March 2010 14:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotremovemail.com

Did you get a Child Count Error on PDT at all ? have a look in your
error log of PDT to see.

Do you have any expressions in your watch expressions view that invoke
functions or methods for example ?

does clearing your watch expressions, stopping and restarting pdt solve
the problem ?

Dave Kelsey

On 23/03/10 14:09, stephanie_ehrling@web.de wrote:
> I'm using PDT 2.1-SR2.
>
> I tried to debug this simple script:
>
> <?php
> $myvar = 5;
>
> echo $myvar;
> echo $mydoublevar = double($myvar);
>
> function double($x){
> return $x*2; }
>
>
> The output in the xdebug log file is:
>
>
> Log opened at 2010-03-23 14:01:23
> -> <init xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
> fileuri="file:///C:/workspace/hellodebugger/index.php" language="PHP"
> protocol_version="1.0" appid="6036" idekey="ECLIPSE_DBGP"><engine
> version="2.1.0rc1-dev"><![CDATA[Xdebug]]></engine><author ><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright
> (c) 2002-2010 by Derick Rethans]]></copyright></init>
>
> <- feature_set -i 408 -n show_hidden -v 1
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set"
> transaction_id="408" feature="show_hidden" success="1"></response>
>
> <- feature_set -i 409 -n max_depth -v 5
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set"
> transaction_id="409" feature="max_depth" success="1"></response>
>
> <- feature_set -i 410 -n max_children -v 34
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set"
> transaction_id="410" feature="max_children" success="1"></response>
>
> <- feature_get -i 411 -n encoding
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get"
> transaction_id="411" feature_name="encoding"
> supported="1"><![CDATA[iso-8859-1]]></response>
>
> <- feature_get -i 412 -n supports_async
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get"
> transaction_id="412" feature_name="supports_async"
> supported="1"><![CDATA[0]]></response>
>
> <- stdout -i 413 -c 1
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stdout"
> transaction_id="413" success="1"></response>
>
> <- stderr -i 414 -c 1
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stderr"
> transaction_id="414" success="0"></response>
>
> <- breakpoint_set -i 415 -t line -f
> file:///C:%5Cworkspace%5Chellodebugger%5Cindex.php -n 2
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set"
> transaction_id="415" id="60360029"></response>
>
> <- breakpoint_set -i 416 -t line -f
> file:///C:%5Cworkspace%5Chellodebugger%5Cindex.php -n 4
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set"
> transaction_id="416" id="60360030"></response>
>
> <- breakpoint_set -i 417 -t line -f
> file:///C:%5Cworkspace%5Chellodebugger%5Cindex.php -n 5
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set"
> transaction_id="417" id="60360031"></response>
>
> <- step_into -i 418
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_into"
> transaction_id="418" status="break" reason="ok"><xdebug:message
> filename="file:///C:/workspace/hellodebugger/index.php"
> lineno="2"></xdebug:message></response>
>
> <- stack_get -i 419
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get"
> transaction_id="419"><stack where="{main}" level="0" type="file"
> filename="file:///C:/workspace/hellodebugger/index.php"
> lineno="2"></stack></response>
>
> <- step_over -i 420
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over"
> transaction_id="420" status="break" reason="ok"><xdebug:message
> filename="file:///C:/workspace/hellodebugger/index.php"
> lineno="4"></xdebug:message></response>
>
> <- stack_get -i 421
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get"
> transaction_id="421"><stack where="{main}" level="0" type="file"
> filename="file:///C:/workspace/hellodebugger/index.php"
> lineno="4"></stack></response>
>
> <- step_over -i 422
> -> <stream xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" type="stdout"
> encoding="base64"><![CDATA[NQ==]]></stream>
>
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over"
> transaction_id="422" status="break" reason="ok"><xdebug:message
> filename="file:///C:/workspace/hellodebugger/index.php"
> lineno="5"></xdebug:message></response>
>
> <- stack_get -i 423
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get"
> transaction_id="423"><stack where="{main}" level="0" type="file"
> filename="file:///C:/workspace/hellodebugger/index.php"
> lineno="5"></stack></response>
>
> <- step_over -i 424
> -> <stream xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" type="stdout"
> encoding="base64"><![CDATA[MTA=]]></stream>
>
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over"
> transaction_id="424" status="break" reason="ok"><xdebug:message
> filename="file:///C:/workspace/hellodebugger/index.php"
> lineno="7"></xdebug:message></response>
>
> <- stack_get -i 425
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get"
> transaction_id="425"><stack where="{main}" level="0" type="file"
> filename="file:///C:/workspace/hellodebugger/index.php"
> lineno="7"></stack></response>
>
> <- step_over -i 426
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over"
> transaction_id="426" status="stopping" reason="ok"></response>
>
> <- stop -i 427
> -> <response xmlns="urn:debugger_protocol_v1"
> xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stop"
> transaction_id="427" status="stopped" reason="ok"></response>
>
> Log closed at 2010-03-23 14:01:32
>
>
> Any ideas?
Re: Variables view empty when usign xdebug [message #522667 is a reply to message #522665] Tue, 23 March 2010 14:50 Go to previous message
No real name is currently offline No real nameFriend
Messages: 3
Registered: March 2010
Junior Member
There were no errors in the pdt error log file.
Restarting (by using File -> Restart) did the trick! Just closing and starting pdt had no effect!

Thx a lot!!! Razz
Previous Topic:Formatting doesn't work?
Next Topic:validation and exclude filter
Goto Forum:
  


Current Time: Sun May 16 16:14:14 GMT 2021

Powered by FUDForum. Page generated in 0.02526 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top