New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Devtools SilentException triggers debug #3100
Comments
I still can't find a way around this :( |
Could be an STS/IntelliJ feature. Leaving open to check. |
I believe jdb can be configured to ignore certain uncaught exceptions. For example:
I wonder if it would be possible for STS and IDEA to set this automatically when they're debugging a Spring Boot app that's using Dev Tools? |
@wilkinsona Yepp, makes sense, good idea. Added a tracker item for this for one of our next sprints. |
where would I configure this in eclipse? |
@gerbsen In theory, I think you should be able to use the Java Exception Breakpoint UI that can be accessed by clicking the J! icon in the Breakpoints view. However, I've never managed to get it to work. I suspect I haven't managed to find the right combination of settings in the UI that maps onto the correct call to jdb. However, what does work is disabling "Suspend execution on uncaught exceptions". You can find that option in Preferences -> Java -> Debug. It's not as fine-grained as I would like (it applies to all exceptions and not just |
We added a preference to automatically ignore this exception when running an app in STS as Spring Boot app. This will be available as part of the upcoming STS 3.7.3 release. |
Awesome! Thanks, @martinlippert . |
I don't think there's much else we can do other than have tools detect the exception. |
sorry, was this fixed? or do I need to configure my IDE (not using STS) to do this or something |
@sinjihn If you are not using STS, you'll have to configure your IDE's debugger to ignore the uncaught exception |
Please, Make it at least public class so it can be examined and ignored in the catch block. As of now the only way to skip it is to check for Thanks |
@vladgon This issue is closed. Furthermore, STS automatically configures the debugger to ignore the exception without it being public. If you still believe it needs to be public, please open a new issue explaining why that's the case. |
This issue is still present with Eclipse version 2020-03 (4.15.0) & spring-boot 2.3.0 |
@hocine15 You’ll need to install the Spring tools in Eclipse for the exception to be ignored automatically. If you’ve done that and it still isn’t being ignored, please open a Spring tools issue with details of how to reproduce the problem. |
No description provided.
The text was updated successfully, but these errors were encountered: