Prints contents of array when debugging is enabled