Faster Variable Viewer

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Deeem2031
Enthusiast
Enthusiast
Posts: 216
Joined: Sat Sep 20, 2003 3:57 pm
Location: Germany
Contact:

Faster Variable Viewer

Post by Deeem2031 »

When I try to open the Variable Viewer of the debugger in a program with global variables, which have big arrays inside, it takes very long time to open, and every time you hit "Step" it take the same time to update.
For example I have 5 variables with this structure in my project:

Code: Select all

Structure SList
  sub.l[27*256]
  sublen.l[27*256]
EndStructure

Global a.SList,b.SList,c.SList,d.SList,e.SList

CallDebugger
This ends up in 69110 elements which all get updated in the variable viewer. Here i have to wait about 15 seconds til the variable viewer is loaded completely.

Now it would be much more efficient if the elements only get updated if you expand the variable in the treeview - especially for such large structures.
irc://irc.freenode.org/#purebasic
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

To watch individual values as you step through the code, the Watchlist tool is the better one.

I will see if there room for speedup without messing things up too much in the variable viewer...
quidquid Latine dictum sit altum videtur
Post Reply