how can you debug the variable in an array?

what I want to do is just to see the variable data in each index of the array.

Ex:
Code:
var myArray[10] = { 0,0,0,0,0,0,0,0,0,0 };
var x=9;

function shiftRFunction(var newValue)
{
while(x>0)
{			
  if(x==1)
  {
    myArray[0] = newValue;
  }
  else
  {
    myArray[x-1] = myArray[x-2];
  }

  x--;
}
}



I try it to put in the panel just to see the variable
Code:
PANEL* pan_debug =
{
  pos_x = 740;
  pos_y = 5;
  digits(30, 80, "my array index: %1.0f", *, 1, myArray[x]);		
  flags = SHOW;
}



but not showing... Any idea? Thanks