[xdebug-general] AW: Missing variables while remote debugging

From: Nikolai Essel - MAXWORX GmbH <Nikolai.Essel[@]maxworx.com>
Date: Wed, 24 Nov 2010 13:48:59 +0100

Yeah, got it already

The missing properties are the private variables of a base class. I think these were submitted in history or am I wrong?

Thanks


----------------------------
CODE
----------------------------

class XDebugTestclass1
{
        private $_var1_1;
        private $_var1_2 = null;
        private $_var1_3;
        function __construct()
        {
                $this->_var1_3 = "test";
        }
        function method1_1()
        {
                $test = "a"; // used for setting breakpoint only
        }
}
class XDebugTestclass2 extends XDebugTestclass1
{
        private $_var2_1;
        private $_var2_2 = null;
        private $_var2_3;
        function __construct()
        {
                $this->_var2_3 = "test";
        }
        function method2_1()
        {
                $test = "a"; // used for setting breakpoint only
        }
}



$obj = new XDebugTestclass2();
$obj->method2_1();


----------------------------
LOG
----------------------------
<- context_get -i 418 -d 0
->
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="context_get" transaction_id="418" context="0">
        <property name="test" fullname="$test" type="uninitialized"></property>
        <property name="this" fullname="$this" address="71943616" type="object" classname="XDebugTestclass2" children="1" numchildren="6" page="0" pagesize="500">
                <property name="CLASSNAME" type="string"><![CDATA[XDebugTestclass2]]></property>
                <property name="_var2_1" fullname="$this-&gt;_var2_1" facet="private" address="71938848" type="null"></property>
                <property name="_var2_2" fullname="$this-&gt;_var2_2" facet="private" address="71939088" type="null"></property>
                <property name="_var2_3" fullname="$this-&gt;_var2_3" facet="private" address="71939800" type="string" size="4" encoding="base64"><![CDATA[dGVzdA==]]></property>
        </property>
</response>


-----Ursprüngliche Nachricht-----
Von: Derick Rethans [mailto:derick[@]xdebug.org]
Gesendet: Mittwoch, 24. November 2010 13:23
An: Nikolai Essel - MAXWORX GmbH
Cc: xdebug-general[@]lists.xdebug.org
Betreff: Re: [xdebug-general] Missing variables while remote debugging

Hi!

On Wed, 24 Nov 2010, Nikolai Essel - MAXWORX GmbH wrote:

> are there some limitations of the returned values from context_get?
> I´m using php5.3.1 VC6 TS with Xdebug v2.1.0
>
> While debugging in Eclipse I missed most of the variables of $this in
> the variables view. Watching $this doesn't display the variables
> either. I tried to increase the pagesize to 500 or decreased it to 10
> but this didn´t help.
>
> After activating remote debug log I recognized that the contents
> aren't transferred by xdebug. Below you can find the log of a
> breakpoint hit. I cutted some sub-parts (marked with "... cutted") to
> minimize the contents.
>
> Any ideas why most of the properties of $this are missing (numchildren
> 92 but only 5 inclued)?

Odd; would you have a small reproducing script perhaps so that I can try to debug this?

cheers,
Dreick

--
Like Xdebug? Consider a donation: http://xdebug.org/donate.php Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
twitter: @derickr and @xdebug

MAXWORX GmbH | Brückenstraße 8-10 | 63628 Bad Soden-Salmünster | Germany
Amtsgericht Hanau | HRB 90677 | Geschäftsführer: Holger Göbel, Ralph Göbel

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

This email may contain confidential and/or privileged information. If you are not the intended recipient (or have received this email in error) please notify the sender immediately and destroy this email. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Received on Wed Nov 24 2010 - 12:49:01 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST