"Index, Dimension 1, above upper bounds" type error

Thank you Charles, I hereby attach the snapshot for the error as well. I am using control point method in the following snapshot, sometimes, both uniform mesh and control point meshing will have the indicated errors. And I want to know how and where to set the compiler options to enter the debug mode? Thank you.