Where are the runtime errors in Eclipse?

Last Updated:

  1. Mtihc

    Mtihc Member


    I'm working on an app. I'm getting runtime errors.

    The problem is, I can't find the error... stacktrace.. thing.

    I'm running it on a real phone. In debug-mode.
    I see a lot going on in Eclipse's debug perspective. But I don't see any stacktrace.
    I do see the application stops, and it shows me in which thread it happens. But I can't even figure out if it's a NullPointerException or what!

    So, where do I find runtime errors?
    I checked LogCat, Console, Problems, Error log.

    Even if I generate my own error, by dividing by zero... The app stops working on that exact line of code. But I still can't find an error that relates to it.

    Please help.

  2. Digital Controller

    Digital Controller The Real Bass Creator Guide

    Hey there Mtihc,

    I moved this thread into the Dev 101 forum since you seemed to have a question regarding Developing apps. Hope this is okay and please enjoy your friday :)
    jonbonazza likes this.
  3. jonbonazza

    jonbonazza Well-Known Member

    You need to open the DDMS perspective in eclipse. You can do this by going to Window->Open Perspective->Other And selecting DDMS.
  4. Mtihc

    Mtihc Member

    Thanks, but I still don't see anything useful.
  5. myrecek

    myrecek Active Member

    You should see it in LogCat. As you wrote you don't see it there - do you see anything in LogCat? Some system logs or logs from another application? I see a huge amount of logs when I connect my phone even if I don't play with any app. But sometimes the LogCat is empty and I need to reconnect or even restart adb/eclipse/anything manually. Perhaps you have to do the same.
  6. Mtihc

    Mtihc Member

    I do see something in LogCat.
    They are messages related to my app. But there are no errors.

    After it says: "The debugger has settled"
    There are some messages like: "GC_FOR_ALLOC free 1k"

    No errors.

    I did find something. I read bulletpoint 1 on this page
    It says I can add "android:debuggable="true"" to the application tag.

    I did that.
    When I click debug, I get a message:
    "The JRE Instance Default XSLT processor does not support debugging_
    Would you like to debug using the default Xalan 2.7.1 processor instead?"

    I clicked YES. Then it showed me some error stacktrace in the Console window.
    It was not the error I expected though. I expected a ArithmeticException because I divide by zero. But I get this:


Share This Page