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

前端 未结 5 818
Happy的楠姐
Happy的楠姐 2021-01-30 19:35

Every time 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 b

5条回答
  •  别那么骄傲
    2021-01-30 19:57

    This is unfortunately a know issue with the new spring-boot-devtools module (see https://github.com/spring-projects/spring-boot/issues/3100). We use this trick to kill the main thread so that we can replace it with a re-loadable version. So far I've not found a way to prevent the debug breakpoint from triggering.

    For now, you can toggle the "suspend execution on uncaught exceptions" checkbox in Java -> Debug preferences to prevent it from happening.

提交回复
热议问题