How To Debug Android Applications in Eclipse
Why Stack Overflow recommends it
Stack Overflow users link it when answering beginners whose Android app crashes or misbehaves in Eclipse and who need to learn to use the debugger instead of guessing.
Recommended by 9 people across 8 different months, 2012 to 2014.
What it is
A short 2011 screencast that shows how to debug Android apps in the Eclipse IDE, covering breakpoints and running the debugger. It is narrated in a Khan Academy style by the channel ZannuxSTC and aimed at beginners.
What people said
Recommends Gray · 2012-04 · Stack Overflow · on “persist bidirectional relationship ormlite”
I would suggest that you learn how to use the debugger. Step through you code until you get the exception. Here's a good video on the subject: [this video]
Recommends petey · 2012-10 · Stack Overflow · on “Android: NullPointer after trying to make an intent after onTab on ItemizedOverly”
I'm guessing that ActivityStack activityStack is null, you should check out this video on how to debug android applications from eclipse : [this video]
Recommends m0skit0 · 2012-10 · Stack Overflow · on “Application works on emulator, but not on real device - float type”
I mean the values when the exception happens, not the initialization values. Sorry but this is not the place to show you how to debug, this is something you're supposed to know how to do if you're a developer. Here's a video anyway [this video]
Recommends Thomas · 2012-11 · Stack Overflow · on “debugging Android application (in Eclipse)”
Here there is a video [this video] Though as Matthias said, there is no rocket science about it. Put breakpoints, click on debug and run your software =D
Recommends GJK · 2013-04 · Stack Overflow · on “java sudoku board placing numbers”
This will help you debug your application. Once you have a breakpoint set and are debugging, you should be able to see your problem pretty easily. [this video]
Recommends Mirco Widmer · 2013-08 · Stack Overflow · on “How to use an intent to call up another class?”
No, debugging is not just looking at the logcat and hoping you see something. This video [this video] and this article [LINK] should help you.
Recommends Diego Palomar · 2013-10 · Stack Overflow · on “How to make Eclipse tell me on which line an error occurred?”
The error is in the line 79 in AmountFragment.Java . The sentence of that line is trying to do something with an instance that is null. DDMS perspective provides you a lot of information that debug perspective doesn´t. In ddms perspective you can wath Threads and the memory used for each thread, memory per application, see application and emulator heap, the allocation tracker (here you can step the asynchronous task i.e), the logcat are much more fine that debug console. One of the most useful function is the Method profiling, where you can follow step by step the actions performed by your app. Maybe this video would be helpful for you to debug an Android app: How To Debug Android Applicatio
Recommends GhostDerfel · 2014-03 · Stack Overflow · on “is there a way to debug a http request through an android app inside eclipse?”
Do you have the code of the app right? Can you post the code where this cada is maneged from the app? Then we maybe can help you pointing where you need to set the debug point or just add a log call, and also to understand the debug in your eclipse , just look at this link: [this video]
Recommends RumburaK · 2014-05 · Stack Overflow · on “My service doesn't stop”
that is probably a crash, an exception... you should run the app with the eclipse debugger or look at the logcat message. there should appear there some backtrace showing what the problem is. e.g. [this video]
Cites Siddhesh · 2013-03 · Stack Overflow · on “Android spinner crashing when clicked on”
your code works perfectly on my side. even your `onItemSelectedListener` i dont know why you are using this.profile and even i don't what your `sqler.getProfile()` returns and also don't know where have you written this code. so if possible paste whole class or debug you code [this video]