Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Best practice for exception breakpoints in SWT?
Best practice for exception breakpoints in SWT? [message #461192] Mon, 19 September 2005 12:59 Go to next message
Jonathan Edwards is currently offline Jonathan EdwardsFriend
Messages: 27
Registered: July 2009
Junior Member
Debugging SWT programs is annoying, because all exceptions are caught in
the SWT event loop. To catch exceptions at the point of origin in the
debugger, you need to pre-establish breakpoints on caught exceptions. I
consider it unacceptable (and archaic) to have to reproduce every error
that throws an exception in order to set up exception breakpoints. There
needs to be a permanent configuration that catches all errors the first
time. A further complication is that there are many places in SWT and
the Java libraries where exceptions are caught normally. So these need
to be filtered out.

It seems that it is necessary to establish individual breakpoints on
every exception you could ever possibly throw in error, and then filter
out the places where other people's code throws them normally. Is there
some technique that avoids this pain?
Re: Best practice for exception breakpoints in SWT? [message #461589 is a reply to message #461192] Mon, 26 September 2005 22:52 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
This sounds like Eclipse pain, not SWT pain. SWT catches very few
exceptions and rethrows them when it does.

"Jonathan Edwards" <edwards@csail.mit.edu> wrote in message
news:dgmcmv$64l$1@news.eclipse.org...
> Debugging SWT programs is annoying, because all exceptions are caught in
> the SWT event loop. To catch exceptions at the point of origin in the
> debugger, you need to pre-establish breakpoints on caught exceptions. I
> consider it unacceptable (and archaic) to have to reproduce every error
> that throws an exception in order to set up exception breakpoints. There
> needs to be a permanent configuration that catches all errors the first
> time. A further complication is that there are many places in SWT and
> the Java libraries where exceptions are caught normally. So these need
> to be filtered out.
>
> It seems that it is necessary to establish individual breakpoints on
> every exception you could ever possibly throw in error, and then filter
> out the places where other people's code throws them normally. Is there
> some technique that avoids this pain?
Previous Topic:Image formats supported on windows and linux?
Next Topic:SWT advanced graphics
Goto Forum:
  


Current Time: Thu Apr 25 05:59:20 GMT 2024

Powered by FUDForum. Page generated in 0.03292 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top