Debug array display
BlitzPlus Forums/BlitzPlus Beginners Area/Debug array display
| ||
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. |
| ||
I belive this is a bug, and arrays don't show up, but I may be wrong. |
| ||
Any chance this might be corrected in the future? I suspect that BlitzMax is taking most of the resources... |
| ||
Yeah, until BMX for windows is released, I doubt B+ will get any attention. |
| ||
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. |
| ||
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+. |