JAVA does not report errors when release directly, but does it report errors in debug mode?

  java, question
import java.util.* ;
 import java.util.regex.* ;
 
 public class dd
 bracket
 public static void main(String args[])
 bracket
 Pattern p = pattern.com pile (([a-za-z] plus) \\s*(\\d*));
 Matcher m = p.matcher("") ;
 Scanner sc = new Scanner(System.in) ;
 
 while(true)
 bracket
 String x = sc.nextLine() ;
 m.reset(x) ;
 boolean b = m.find() ;
 if(b)
 bracket
 System.out.println(m.group(1)) ;
 System.out.println(m.group(2)) ;  //As long as you add a breakpoint in this line, an error will be reported.
 bracket
 System.exit(0);
 bracket
 bracket
 bracket

If it runs directly, it will not report an error:
图片描述
No breakpoint will be added and no error will be reported under debug:
图片描述
But once a breakpoint is added, an error will be reported:
图片描述
What is going on here?

No problem found, why don’t you try Eclipse again