为啥我用IDEA打了断点以后,然后进行debug,在数组的那一行会报错?为啥,是我debug的相关设置错了吗?
为啥我用IDEA打了断点以后,然后进行debug,在数组的那一行会报错?为啥,是我debug的相关设置错了吗?
public class Test01 {
public static void main(String[] args) {
int a=10;//我在这一行打的断点,然后一行一行往下DEBUG
int b=20;
int c=30;
int[] arr=new int[4];//到这一行的时候,我的代码直接出现internal error
arr[0]=8;
arr[1]=9;
arr[2]=10;
arr[3]=11;
}
}