Debug array display

BlitzPlus Forums/BlitzPlus Beginners Area/Debug array display

Kyle(Posted 2005) [#1]
Hello, just trying to do a quick debug test of arrays, but they don't seem to be appearing in the debug variable window. Why is this?

Dim myarray%(10)
stop
myarray%(1) = 5555
myarray%(2) = 2222
stop

When stepping through this code I do not see myarray% in the locals, globals, or const's tabs.


Lattyware(Posted 2005) [#2]
I belive this is a bug, and arrays don't show up, but I may be wrong.


Kyle(Posted 2005) [#3]
Any chance this might be corrected in the future? I suspect that BlitzMax is taking most of the resources...


Lattyware(Posted 2005) [#4]
Yeah, until BMX for windows is released, I doubt B+ will get any attention.


Beaker(Posted 2005) [#5]
It's not a bug. It's the same in Blitz3D. Makes sense if you think about it, otherwise you could have thousands (if not millions) of entries in the debug window.

If you want a quick fix try:
Dim myarray%(10) 
MyStop 
myarray%(1) = 5555 
myarray%(2) = 2222 
MyStop 
Function MyStop()
	For f = 0 To 10
		DebugLog myarray(f)
	Next
	Stop
End Function

Pretty painless really.


Mr. Write Errors Man(Posted 2005) [#6]
Arrays are doable. See for example how it is done in Visual Basic 6: Arrays open with a [+] just like types open now in B+.