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 8331829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:32:16+00:00 2026-06-09T02:32:16+00:00

I (Java newbie) am running a Java program in Eclipse (project I downloaded from

  • 0

I (Java newbie) am running a Java program in Eclipse (project I downloaded from SourceForge). When I debug it, it always ends up at this location, which occurs after a 50-line try block:

catch (Exception ex){
    System.err.println("PROCESSING ERROR: " + ex.getMessage());
    helpFormatter.printHelp(usage, options);
}

How can I find and debug the line of code that triggers this exception? (i.e. see the line number, inspect local variables, evaluate expressions, etc.) If I place a breakpoint after the catch, I don’t see any way to get back to the original error or at least find out the line number. I could step through the code in the try block, but there are a lot of loops, so that could get extremely time consuming.

How can I debug this?

  • 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-06-09T02:32:17+00:00Added an answer on June 9, 2026 at 2:32 am

    Have a look at the stacktrace. You can find inyside an Eclipse tab somewhere, or print it directly when you catch the exception:

    catch (Exception ex){
        ex.printStackTrace();
    }
    

    Inspecting the stacktrace is the fast and most secure way to find your error quickly. Even if you set a breakpoint (or worst use some print to locate the last statement executed) you won’t be able to determine exactly where the exception occurred.
    In fact the exception could have been raised a lot deeper inside your calls stack, not necessarily in the first method called after the breakpoint.

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

Sidebar

Related Questions

Just a simple question from a relative Java newbie: what is the difference between
I am a newbie java dev using netbeans IDE 7.1.1 and im watching this
I am a newbie in the Java world and this is among my first
Java newbie here, I'm having trouble setting a new line in this code: String
Java newbie. I am trying to run a java main class from cmd line
I am a java newbie. I have been using Eclipse to test a simple
Java newbie here. I am using a third party library which gives me a
Java newbie here...caution! I've set this practice app up using this example as a
I'm a Java newbie and can't seem to figure out why this crude, 20
Java Newbie here. I have a JFrame that I added to my netbeans project,

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.