Array in debugger

Monkey Forums/Monkey Bug Reports/Array in debugger

Pharmhaus(Posted 2014) [#1]
Hi,

The debug information of arrays seems to be wrong in 82a, 80c worked well.
Note that some array elements are invisible after resizing:

Strict

Function Main:Int()
	DebugStop()
	Local arrayDebug:Int[0]
	arrayDebug = arrayDebug.Resize(8)
	arrayDebug[7] = 12345
	arrayDebug = arrayDebug.Resize(16)
	arrayDebug = arrayDebug.Resize(8)
	arrayDebug[7] = 56
	arrayDebug = arrayDebug.Resize(16)
	arrayDebug[15] = 456
	Return 0
End



marksibly(Posted 2014) [#2]
Hmm...it would appear the debugger is only dumping 10 elements max - in earlier versions, it would just dump whatever which caused the dbugger/ide to crash on large arrays (from memory - can't remember 'fixing' this!).

Best solution is probably to get ide/debugger to 'request' elements [i...j] somehow, but that's hard so for now I'll up the max limit to 100!


Pharmhaus(Posted 2014) [#3]
Would it be possible to show the array length somewhere or indicate with some ... that there are more elements?
As my array code had about ~12 elements I thought that my code was broken before I realized the debugger was wrong.