Arun Kumar Arjunan
Arun Kumar Arjunan

Reputation: 6857

Debug android application

I am developing an Android application where I get the following exception while writing to the database:

An exception occurred: android.database.sqlite.SQLiteException

But it doest say anything else(not even the stack trace).

In general I find it very difficult to debug android SDK exceptions.

Any suggestions/tips on how to debug while developing android applications?

Upvotes: 2

Views: 596

Answers (2)

Pentium10
Pentium10

Reputation: 208022

You need to learn how to Debug in Eclipse and how to use the ADB and DDMS tools.

In order to get more details about an exception/force close you need to look for a view in Eclipse called Logcat(you will find in the DDMS perspective) there you will find a detailed traceback when/what and on what line is the issue.

For this you should read a complete article about Debugging in Android using Eclipse

alt text
(source: droidnova.com)

Upvotes: 4

Koekiebox
Koekiebox

Reputation: 5963

Have a look at this question and answers, also Developer Android.

I reckon you first get your head around handling exceptions before tackling the SQLiteException.

Upvotes: 0

Related Questions