IDE: variables list

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
CSAUER
Enthusiast
Enthusiast
Posts: 188
Joined: Mon Oct 18, 2004 7:23 am
Location: Germany

IDE: variables list

Post by CSAUER »

Hi,

I would like to suggest, that a double click onto a variable list entry would show the whole content in a editorgadget-window. This would be very useable if a string has a linebreak or more than just the displayed content.
I think this shouldn't be a big thing, but very helpful.

Addionally nice:
A double click onto a pointer value which points to a linked list, should jump onto the pointed linked list. It is hard to determine the pointed linked list, if you only have a pointer addressed to it. I use this very often, because some root linked list, point to other linked lists.
I don't know if this would be possible.

Thanks in advance.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PB4.1 - Win: MacBook black 2008 2,4 GHz, 4 GB RAM, MacOSX 10.5/VMWare/WinXP
PB4.1 - Mac: MacMini G4 1,4 GHz, 512 MB RAM, MacOSX 10.4
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Post by Demivec »

CSAUER wrote:Addionally nice:
A double click onto a pointer value which points to a linked list, should jump onto the pointed linked list. It is hard to determine the pointed linked list, if you only have a pointer addressed to it. I use this very often, because some root linked list, point to other linked lists.
I don't know if this would be possible.
@CSAUER: Since a pointer holds a value, I don't think the IDE would be able to figure out what that value represented. The value might be an address of a linked-list, an address of a structure, an offset, or just a number. The feature would be wonderful but it doesn't look like it would be possible because the IDE/debugger would have to read your mind to figure out how it is supposed to interpret that value when you double-click it.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Code: Select all

*Pointer.TYPE
The debugger knows the type. Where is the problem?
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Post by Demivec »

Trond wrote:

Code: Select all

*Pointer.TYPE
The debugger knows the type. Where is the problem?
@Trond: If you were asking me, it wasn't the type that CSAUER was referring to, but a pointer that pointed to a linked-list. I think I see your point, if the pointer has a type, it could be dereferenced and displayed the same as a structured varaible.

Ignoring the linked-list aspect, which I confess confused my understanding of the feature-request, it would be possible to display a structure that is pointed at by a *Pointer.TYPE as easily as any other variable's contents.

I amend my first posting by adding that I think this portion of the request would be helpful and possible. I usually have to manually look at the memory area being pointed at to discern what it contains because it isn't dereferenced by the the debugger.
Last edited by Demivec on Thu Jun 12, 2008 5:38 pm, edited 1 time in total.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Yes, there is a problem with linked list, I skipped that part...
Post Reply