Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6728095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:07:41+00:00 2026-05-26T10:07:41+00:00

This is a minor annoyance I have when debugging with Eclipse. With Suspend execution

  • 0

This is a minor annoyance I have when debugging with Eclipse. With “Suspend execution on uncaught exceptions” checked, the debugger will normally suspend a thread right where the exception was thrown. Exceptions on the Event Dispatch Thread, however, cause it to pause on the last line of EventDispatchThread.run(). There is no useful information about what the exception is or what caused it until I resume the thread to allow the stack trace to print to the console.

Debug the following code in Eclipse to demonstrate:

public class SuspendOnUncaughtTest {
    public static void main(String[] args) {
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                ((Object) null).toString();
            }
        });
    }
}

And here is what it looks like after the exception is thrown:

Suspended at EventDispatchThread.run()
EDIT 10/21/2011: I guess there’s nothing weird going on with Eclipse or the Java debugger, it’s just that exceptions are caught and rethrown in EventDispatchThread.pumpOneEventForFilters(int). I suppose there’s no way to tell Eclipse to “suspend execution on exceptions that are going to be caught and possibly rethrown”. Too bad.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:07:42+00:00Added an answer on May 26, 2026 at 10:07 am

    As far as I can tell, there is no solution to this. Eclipse is behaving correctly, the correct behavior is just annoying.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a minor annoyance I can't find anything on. I have a collection
I've got a ListView that works just great, except for this minor annoyance. I
The page works fine in Chrome, but I have this one minor error in
with help of the community in this thread: Minor grid with solid lines &
This is a pretty minor annoyance, but I noticed that every time I create
There is a minor annoyance I find myself with a lot - I have
This is minor, I know, but let's say that I have a class Character
This is a minor bug (one I'm willing to live with in the interest
This is a minor style question, but every bit of readability you add to
This is one of the minor CSS problems that plague me constantly. How do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.