1. Download our Official Android App: Forums for Android!

Apps Where are the runtime errors in Eclipse?

Discussion in 'Android Development' started by Mtihc, Nov 16, 2012.

  1. Mtihc

    Mtihc Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    8
    Joined:
    Jun 27, 2011

    Jun 27, 2011
    8
    0
    5
    Hello,

    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.
     

    Advertisement

  2. Digital Controller

    Digital Controller The Real Bass Creator
    Rank:
    None
    Points:
    953
    Posts:
    12,647
    Joined:
    Sep 5, 2012

    Sep 5, 2012
    12,647
    3,553
    953
    Male
    Civil Engineer
    Cincinnati, Ohio
    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 Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    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 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    8
    Joined:
    Jun 27, 2011

    Jun 27, 2011
    8
    0
    5
    Thanks, but I still don't see anything useful.
     
  5. myrecek

    myrecek Newbie
    Rank:
    None
    Points:
    16
    Posts:
    29
    Joined:
    May 10, 2012

    May 10, 2012
    29
    2
    16
    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 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    8
    Joined:
    Jun 27, 2011

    Jun 27, 2011
    8
    0
    5
    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

Loading...