Muhammad Irfan
Muhammad Irfan

Reputation: 1457

what is the best way to debug android programs?

Well, I want debugger to point out me on the line number which generates error ? If i get null values at runtime, or my service url path does not exit, it does not point me to specific line.

Is there any best way to debug programs in android rather than just tracing values with log cat ?

I am using eclipse IDE for android development.

Upvotes: 0

Views: 1458

Answers (3)

NikkyD
NikkyD

Reputation: 2284

The logcat error stacktrace should give you a line where the error occured if it is possible.

In case you did not know, if you double-click a stacktrace in eclipse logcat, it shows you the line in your file.

You could also check out ACRA and BugSense in case you dont want the device to be connected all the time.

Upvotes: 2

Ethan
Ethan

Reputation: 1616

Popular JAVA and Android IDE such as Eclipse and IntelliJ are shipped with built in debugging tools. Both should be good enough for your need

Upvotes: 1

Michael
Michael

Reputation: 3332

If you're using eclipse, you can use its built-in debugger.

http://developer.android.com/tools/debugging/debugging-projects.html

Set some breakpoints in your code and then follow it until it throws an error.

Upvotes: 2

Related Questions