Skip to content
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

Closed
philwebb opened this issue Jun 3, 2015 · 15 comments
Closed

Devtools SilentException triggers debug #3100

philwebb opened this issue Jun 3, 2015 · 15 comments
Assignees
Labels
type: enhancement A general enhancement

Comments

@philwebb
Copy link
Member

philwebb commented Jun 3, 2015

No description provided.

@philwebb philwebb added this to the 1.3.0.M1 milestone Jun 3, 2015
@philwebb philwebb modified the milestones: 1.3.0.M2, 1.3.0.M1 Jun 11, 2015
@philwebb philwebb modified the milestones: 1.3.0.RC1, 1.3.0.M2 Jul 7, 2015
@philwebb philwebb modified the milestones: 1.3.0.RC1, 1.3.0.M3 Aug 5, 2015
@snicoll snicoll modified the milestones: 1.3.0.RC1, 1.3.0.M5 Aug 26, 2015
@snicoll snicoll self-assigned this Aug 26, 2015
@snicoll snicoll added the type: enhancement A general enhancement label Aug 26, 2015
@snicoll snicoll assigned phumphrey and philwebb and unassigned snicoll and phumphrey Aug 26, 2015
@philwebb philwebb changed the title SilentException triggers debug Devtools SilentException triggers debug Sep 25, 2015
@philwebb
Copy link
Member Author

I still can't find a way around this :(

@philwebb philwebb modified the milestones: 1.3.0, 1.3.0.RC1 Sep 30, 2015
@philwebb philwebb modified the milestones: 1.4.0, 1.3.0 Nov 11, 2015
@philwebb
Copy link
Member Author

philwebb commented Jan 7, 2016

Could be an STS/IntelliJ feature. Leaving open to check.

@philwebb philwebb modified the milestones: 1.4.0.M1, 1.4.0 Jan 7, 2016
@wilkinsona
Copy link
Member

I believe jdb can be configured to ignore certain uncaught exceptions. For example:

ignore uncaught org.springframework.boot.devtools.restart.SilentExceptionHandler.SilentExitException

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?

/cc @martinlippert @YannCebron

@martinlippert
Copy link
Member

@wilkinsona Yepp, makes sense, good idea. Added a tracker item for this for one of our next sprints.

@gerbsen
Copy link

gerbsen commented Jan 12, 2016

where would I configure this in eclipse?

@wilkinsona
Copy link
Member

@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 SilentExitException), but you may consider it to be better than nothing.

@martinlippert
Copy link
Member

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.

@wilkinsona
Copy link
Member

Awesome! Thanks, @martinlippert .

@philwebb philwebb removed this from the 1.4.0.M1 milestone Feb 26, 2016
@philwebb
Copy link
Member Author

I don't think there's much else we can do other than have tools detect the exception.

@hypogealgaol
Copy link

sorry, was this fixed? or do I need to configure my IDE (not using STS) to do this or something

@wilkinsona
Copy link
Member

@sinjihn If you are not using STS, you'll have to configure your IDE's debugger to ignore the uncaught exception

@vladgon
Copy link

vladgon commented Aug 6, 2016

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
e.getMesage()==null

Thanks

@wilkinsona
Copy link
Member

@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.

@hocine15
Copy link

This issue is still present with Eclipse version 2020-03 (4.15.0) & spring-boot 2.3.0

@wilkinsona
Copy link
Member

wilkinsona commented Jun 14, 2020

@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.

volkanistek added a commit to javaci-net/javaci-bank that referenced this issue Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

9 participants