evorion / geben-on-emacs

Automatically exported from code.google.com/p/geben-on-emacs
GNU Lesser General Public License v2.1
0 stars 0 forks source link

When drilling down into nested objects it stops at CLASSNAME instead of showing the data #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. start debugging a program
2. type 'v' for geben-display-context
3. click + signs to drill-down into Local variables/objects

What is the expected output? What do you see instead?
I should be able to drill-down deep into the objects and see the data values. 
Instead it stops after the first object and shows CLASSNAME

What version of the product are you using? On what operating system?
geben 0.26
emacs 23.2.1
xdebug-2.1.0RC1
Linux ubuntu

Please provide any additional information below.

For example the 'this' object is usually pretty large and by clicking 
drill-down (plus sign) in the context window I could not get past the second 
object before seeing "CLASSNAME" entries that hide the data I want to see.

I noticed that the command issued by geben was pulling bad results because of 
the page argument:
(cmd) property_get -i 30108 -d 0 -c 0 -n $this->_request->searchInput -p 1

<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" 
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="property_get" 
transaction_id="30108">
  <property name="$this-&gt;_request-&gt;searchInput" fullname="$this-&gt;_request-&gt;searchInput" address="139" type="object" classname="stdClass" children="1" numchildren="15" page="1" pagesize="32">
    <property name="CLASSNAME" type="string">stdClass</property>
  </property>
</response>

BUT this (-p 0) worked:
(cmd) property_get -i 30108 -d 0 -c 0 -n $this->_request->searchInput -p 0

<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" 
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="property_get" 
transaction_id="301">
  <property name="$this-&gt;_request-&gt;searchInput" fullname="$this-&gt;_request-&gt;searchInput" address="139" type="object" classname="stdClass" children="1" numchildren="15" page="0" pagesize="32">
    <property name="NumberOfRec" fullname="$this-&gt;_request-&gt;searchInput-&gt;NumberOfRec" facet="public" address="000000" type="int">50</property>
    <property name="StartingRec" fullname="$this-&gt;_request-&gt;searchInput-&gt;StartingRec" facet="public" address="11111" type="int">0</property>
    <property name="NumberOfA" fullname="$this-&gt;_request-&gt;searchInput-&gt;NumberOfA" facet="public" address="22222" type="int">1</property>
    <property name="ShowPos" fullname="$this-&gt;_request-&gt;searchInput-&gt;ShowPos" facet="public" address="33333" type="int">1</property>
    <property name="UserData" fullname="$this-&gt;_request-&gt;searchInput-&gt;UserData" facet="public" address="44444" type="string" size="66" encoding="base64">6M</property>
  </property>
</response>

Here is a workaround I found... I just hardcoded the nextpage to zero.

change line 2324 in geben.el
:page nextpage)))
to
:page 0)))

Hope it helps-
Doug

Original issue reported on code.google.com by douglasw...@gmail.com on 31 Mar 2011 at 11:07

GoogleCodeExporter commented 8 years ago
it works for me, thanks.

Original comment by ptr.w...@gmail.com on 2 Apr 2011 at 5:30