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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:40:05+00:00 2026-06-04T17:40:05+00:00

In eclipse, I have the option set to breakpoint on any exception, such that

  • 0

In eclipse, I have the option set to breakpoint on any exception, such that I can debug the application state when an exception is thrown.

Case 1

In this first example, everything is working great. It shows the complete call stack, and I can click on any level of the call stack and see the local variables at the time of the crash.

enter image description here


Case 2

However if I hit exceptions in other parts of my code (anything on the UI thread or my GLSurfaceView thread it seems like), I get totally unhelpful behavior. After force close I can see the exception in logcat:

05-30 20:18:10.905: E/AndroidRuntime(23982): FATAL EXCEPTION: GLThread 13
05-30 20:18:10.905: E/AndroidRuntime(23982): java.lang.NullPointerException
05-30 20:18:10.905: E/AndroidRuntime(23982):    at x.x.x.Graphics.MyRenderer.drawSubRenderable(MyRenderer.java:237)
05-30 20:18:10.905: E/AndroidRuntime(23982):    at x.x.x.Graphics.MyRenderer.onDrawFrame(MyRenderer.java:181)
05-30 20:18:10.905: E/AndroidRuntime(23982):    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1363)
05-30 20:18:10.905: E/AndroidRuntime(23982):    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)

but I can’t stop the application at the time of the crash. The application stops, but I get only this (I can’t see my own code in the call stack):

enter image description here



Case 3

Finally, if I throw an exception on the UI thread, I get this monster, but again my code which threw the exception is nowhere to be seen:

enter image description here

The Question

Why can’t I get the code to breakpoint on my actual code in all cases, so that I can inspect why the exception is being thrown? Why does it work in some cases, and not others? Would it help if I installed the android source? (Currently just get a “source not found” message when I get exceptions)

  • 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-04T17:40:06+00:00Added an answer on June 4, 2026 at 5:40 pm

    So I did a little more research, and I think I can guess what is happening.

    I was currently only catching uncaught exceptions, and I guess that any exceptions that occur inside an android callback get handled and rethrown, thus removing my source from the active stack trace.

    If I catch all caught exceptions, than in all cases I do find my code in the call stack like I wanted.

    Unfortunately if I catch on all caught exceptions, I break on probably over 100 exceptions generated and handled internally in the android framework, which makes breaking on caught exceptions somewhat useless.

    Wish there was some better solution here, please answer if you know anything!

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

Sidebar

Related Questions

All, How can we debug a Eclipse plug-in based on GEF? Currently, I have
Can anybody help me set the graphical layout option in eclipse to the dimensions
Can anybody help me set the graphical layout option in eclipse to the dimensions
Since Eclipse 3.5 there seems to be no option to have drop a plugin
I have Eclipse set up fairly nicely to run the G++ compiler through Cygwin.
I mostly use Eclipse but have mentionned Netbeans on my cv. Are there any
Is it possible in Eclipse to have a Console, where when in Debug mode
I have a problem with Eclipse Preference. I cannot see anything in the debug-layout
I have set up the board according to the RX cpu example in eclipse,
I have a PHP project set up in Eclipse with SVN support. Now, Eclipse

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.