It is currently Mon May 20, 2013 2:12 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Show pointers in variable viewer
PostPosted: Mon Dec 26, 2011 8:45 pm 
Offline
Always Here
Always Here
User avatar

Joined: Mon Sep 22, 2003 6:45 pm
Posts: 7304
Location: Norway
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.

_________________
Woa, I set up a web server.


Top
 Profile  
 
 Post subject: Re: Show pointers in variable viewer
PostPosted: Sun Jan 01, 2012 8:56 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 2484
Location: New Zealand
+1


Top
 Profile  
 
 Post subject: Re: Show pointers in variable viewer
PostPosted: Mon Mar 05, 2012 3:52 am 
Offline
Addict
Addict
User avatar

Joined: Wed Dec 23, 2009 10:14 pm
Posts: 1382
Location: Boston, MA
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)

_________________
To understand recursion, you must first understand recursion. ~ unknown
I never make stupid mistakes. Only very, very clever ones. ~ John Peel


Top
 Profile  
 
 Post subject: Re: Show pointers in variable viewer
PostPosted: Mon Mar 05, 2012 12:09 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jul 25, 2005 3:51 pm
Posts: 2393
Location: Utah, USA
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

_________________
Image


Top
 Profile  
 
 Post subject: Re: Show pointers in variable viewer
PostPosted: Mon Mar 05, 2012 12:50 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 24, 2004 8:51 am
Posts: 1298
Location: Germany: 49º 45' 21.96" N 10º 38' 4.04" E
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?

_________________
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
http://chipmunk4purebasic.freeforums.org/index.php


Top
 Profile  
 
 Post subject: Re: Show pointers in variable viewer
PostPosted: Mon Mar 05, 2012 12:54 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jul 25, 2005 3:51 pm
Posts: 2393
Location: Utah, USA
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.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Show pointers in variable viewer
PostPosted: Fri Apr 27, 2012 12:11 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 2:58 pm
Posts: 205
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:
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

_________________
Give Up everything but trying!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye