2

Everytime I run my Spring Boot project on debug mode in Eclipse IDE (Spring Tool Suite), the thread stops at "throw new SilentExitException();" line even without a breakpoint.

Neel Kanth
  • 31
  • 1
  • 3

2 Answers2

7

This is a known issue.

There is a solution which is to uncheck the option under Java->debug->suspend on uncaught exception

This is described in this article

Breakpoint at "throw new SilentExitException()" in Eclipse + Spring Boot

This is what I put in my original post that was converted to a comment for being trivial, which I think was a little unfair.

0

Set System property while run the application

@SpringBootApplication
public class SpringBootApplication {

    public static void main(String[] args) {
        System.setProperty("spring.devtools.restart.enabled", "false");//Avoid Breakpoint at “throw new SilentExitException()” in Eclipse + Spring Boot
        SpringApplication.run(SpringBootApplication .class, args);
    }

}
UdayKiran Pulipati
  • 6,579
  • 7
  • 67
  • 92