Can't see Type's Globals when debugging

BlitzMax Forums/BlitzMax Programming/Can't see Type's Globals when debugging

Grey Alien(Posted 2008) [#1]
Hi, I have a type which has some global variables and some normal fields. When using debug mode if I look at the instance of a current type, its Globals are not shown. Nor can I find them anywhere else.

Is this just a limitation of the debugger? (I'm still on V1.28)


plash(Posted 2008) [#2]
Can you post an example showing the problem?

You might just want to update to v1.30, I hear it has a better debugger (it could just be MaxIDE).


Grey Alien(Posted 2008) [#3]
I heard the debugger had fixes, don't know if it has improvements like this.

Well say I have a type like this:

Type Tfoo
  Global abc%

  Field xyz%
End Type

foo: Tfoo = new TFoo

Debugstop


If I run that code, when the code stops I can click on the Debug tab in the IDE and under the application name I can see Local foo which I can expand and see Field xyz:Int=0 but I cannot see the global stored under the Tfoo Type. This would be handy!


Muttley(Posted 2008) [#4]
I'm seeing this too, it's the same in 1.30 as well:

http://www.blitzbasic.com/Community/posts.php?topic=75829


plash(Posted 2008) [#5]
Ahh, I see what your saying.

In BlitzMax 1.30, this:
Does not show information on the type itself.




SebHoll(Posted 2008) [#6]
Yep - this is a known issue and was something to do with the way Type Globals are handled in the GC. Iirc, aren't tracked internally, and so the debugger isn't aware of them.


Grey Alien(Posted 2008) [#7]
So I guess I just have to conclude with "Bummer". If the debugger can't see them, then I guess none of the other IDEs will see them either.


Czar Flavius(Posted 2008) [#8]
You could just use them as normal globals.