printing array elements inside AWK

i just want to dump my array and see if it contains the values i am expecting. It should print as follows,
ignore[0]=345fht
ignore[1]=rthfg56
.
.
.
ignore[n]=49568g

Here is the code. Is this even possible to do? please help

 
termReport.pl < $4 | dos2ux |  head -2000 | awk '
    BEGIN { foundTermEvent=0;
            endMarker="'"${endMarker}"'"; }
    {
      if ( (substr($0, 1, length(endMarker)) == endMarker) ||
           (substr($0, 1, 39) == "'${SBINDIR}'/termReport.pl: ") )
      {
        if (foundTermEvent == 1)
        {
          print "";
          foundTermEvent=0;
        }
      }
      if (foundTermEvent == 1)
      {
            z=0
            while ( z <= leanth_of_ignore )
            {
                if ( ignore[z] == $2 )
               {
               foundTermEvent = 0;
               { print ignore[z] }
               z=31
               }
               else
               {
               print;
               { print ignore[z] }
               z++
               }
            }
      }
      if (substr($0, 1, 18) == "Termination Event:")
      {
        foundTermEvent=1;
      }
    }'