Page 1 of 1

Show pointers in variable viewer

Posted: Mon Dec 26, 2011 8:45 pm
by Trond
Structured pointers can be examined by hover the mouse over them in the IDE. But it's cumbersome, and for big structures, not all members fit in the tooltip. So please add this feature to the variable viewer, too.

Re: Show pointers in variable viewer

Posted: Sun Jan 01, 2012 8:56 pm
by idle
+1

Re: Show pointers in variable viewer

Posted: Mon Mar 05, 2012 3:52 am
by skywalk
Hey, just came across this problem with a pointer based structured array.
The variable viewer only lists the *pointer but not the *pointer.StructureName?
So I cannot expand the contents. :(
But, when I tabbed over to the View Array/List/Map tab and manually entered:
*pointer\myarray() and clicked the [Display] button to the right...
Voila! All the structured array elements were expanded. 8)

Re: Show pointers in variable viewer

Posted: Mon Mar 05, 2012 12:09 pm
by Demivec
skywalk wrote:But, when I tabbed over to the View Array/List/Map tab and manually entered:
*pointer\myarray() and clicked the [Display] button to the right...
Voila! All the structured array elements were expanded. 8)
Great detective work! :D

Re: Show pointers in variable viewer

Posted: Mon Mar 05, 2012 12:50 pm
by IceSoft
Demivec wrote:
skywalk wrote:But, when I tabbed over to the View Array/List/Map tab and manually entered:
*pointer\myarray() and clicked the [Display] button to the right...
Voila! All the structured array elements were expanded. 8)
Great detective work! :D
Seems to be more a BUG as a feature request?

Re: Show pointers in variable viewer

Posted: Mon Mar 05, 2012 12:54 pm
by Demivec
IceSoft wrote:
Demivec wrote:
skywalk wrote:But, when I tabbed over to the View Array/List/Map tab and manually entered:
*pointer\myarray() and clicked the [Display] button to the right...
Voila! All the structured array elements were expanded. 8)
Great detective work! :D
Seems to be more a BUG as a feature request?
I would think that it was an undocumented feature.

Re: Show pointers in variable viewer

Posted: Fri Apr 27, 2012 12:11 pm
by Franky
1.) +1
2.) I'd liked to have it the other way around, too.
If you have a structure that can be expanded, why not show the Adress of that Structure on Column "Value" which for the moment is empty
Additionally, a search for Pointers would be good.

What I Mean:
Imagine this:

Code: Select all

Structure s_Four
  Wert.l
  text.s
EndStructure

Structure s_Three
       List Things.l()
EndStructure

Structure s_Two
  Map Words.s_Three()
EndStructure 

Structure s_One
   Array More.s_two(14)
EndStructure

Global MeinWert.s_One



Procedure GimmeThree(*_TThree.s_Three)
 ForEach *_TThree\Things()
   If *_TThree\Things()\wert=15
     Debug *_TThree\Things()\text
     CallDebugger
     Break
   EndIf
 Next
EndProcedure

Procedure GimmeTwo(*_TTwo.s_Two)
  ForEach *_TTwo\Words()
    Debug MapKey(*_TTwo\Words())
    GimmeThree(*_TTwo\Words())
  Next
EndProcedure

Procedure GimmeOne(*_TOne.s_One)
  Debug ArraySize(*_TOne\More())
  For a=0 To ArraySize(*_TOne\More())
    GimmeTwo(*_TOne\More(a))
  Next
EndProcedure


.... AddAnyData To  MeinWert

GimmeOne(MeinWert)
Just a simple nested Data Structure.
Now, imagine you reach Calldebugger.
Today, there's no way to find out, which element it is.
With a display of the Pointer adress for structured Variables, we could take the Pointer to the watchlist, than start the variable Viewer and compare each elements adress with the one the pointer has.
A search could do this automatically, because PB has all the information it needs for that.


So my wish is 3 wishes.

1.)Show Pointers in VariableViewer (and make the structure Readable)
2.)Show Pointer Adresses for structured Variables
3.)Add a search function or a possibility that we could add that on our own.


Thanks for reading, asking, understanding and implementing

Greetings

Franky