Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

New Forums: Nexus Player | Nexus 9
test: Reply
 
LinkBack Thread Tools
Old November 16th, 2012, 04:31 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jun 2011
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Where are the runtime errors in Eclipse?

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.

Advertisements
Mtihc is offline  
Reply With Quote
sponsored links
Old November 16th, 2012, 07:22 AM   #2 (permalink)
The Real Bass Creator
 
Digital Controller's Avatar
 
Join Date: Sep 2012
Location: Cincinnati, Ohio
Gender: Male
Posts: 12,497
 
Device(s): Galaxy Note 3 4.4.2(Eclipse) , Nexus 7 (Stock), (RIP) Galaxy Nexus 4.4(SlimKat)
Carrier: Verizon

Thanks: 748
Thanked 3,431 Times in 2,166 Posts
Default

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
__________________
Want Faster help? Read this before posting!

I love this community and so should you! So before posting please read:
Site Rules & Guidelines and Android FAQ's
Digital Controller is offline  
Reply With Quote
The Following User Says Thank You to Digital Controller For This Useful Post:
jonbonazza (November 17th, 2012)
Old November 17th, 2012, 05:34 PM   #3 (permalink)
Senior Member
 
jonbonazza's Avatar
 
Join Date: Jul 2010
Gender: Male
Posts: 1,935
 
Device(s): Nexus 4, Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Carrier: ATT

Thanks: 235
Thanked 482 Times in 294 Posts
Default

You need to open the DDMS perspective in eclipse. You can do this by going to Window->Open Perspective->Other And selecting DDMS.
__________________
My blog, Inverted Keystrokes, is looking for aspiring developers (not necessarily with Android) to post articles. If you have any development experience and are interested in participating, please PM me. =)
jonbonazza is offline  
Reply With Quote
Old December 17th, 2012, 07:26 AM   #4 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jun 2011
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, but I still don't see anything useful.
Mtihc is offline  
Reply With Quote
Old December 17th, 2012, 10:05 AM   #5 (permalink)
Junior Member
 
Join Date: May 2012
Posts: 27
 
Device(s): Nexus 7 (Android 4.2.1), Samsung Galaxy Mini (Android 2.3.6)
Carrier: Not Provided

Thanks: 1
Thanked 2 Times in 2 Posts
Default

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.
myrecek is offline  
Reply With Quote
Old December 21st, 2012, 04:19 AM   #6 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jun 2011
Posts: 8
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

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:

Quote:
11:18:49,865 INFO [debugger] AbstractDebugger - Sending event: started eventWriter=java.io.PrintWriter@3ee6b69
11:18:49,918 ERROR [debugger] AbstractDebugger - Transform failed
org.eclipse.wst.xsl.jaxp.debug.invoker.Transformat ionException: No embedded stylesheet instruction for file: file:/D:/Mitch/Eclipse/Asterisk%20App/SipDemo3/AndroidManifest.xml
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JA XPSAXProcessorInvoker.transform(JAXPSAXProcessorIn voker.java:225)
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JA XPSAXProcessorInvoker.transform(JAXPSAXProcessorIn voker.java:186)
at org.eclipse.wst.xsl.jaxp.debug.debugger.AbstractDe bugger.run(AbstractDebugger.java:111)
at java.lang.Thread.run(Unknown Source)
Caused by: org.eclipse.wst.xsl.jaxp.debug.invoker.Transformat ionException: No embedded stylesheet instruction for file: file:/D:/Mitch/Eclipse/Asterisk%20App/SipDemo3/AndroidManifest.xml
at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JA XPSAXProcessorInvoker.transform(JAXPSAXProcessorIn voker.java:214)
... 3 more
Mtihc is offline  
Reply With Quote
Reply
Tags
debug, eclipse, error, runtime


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:25 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.