Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug my app using adb(without IDE) android

I am using gradle script for building the app in Eclipse . By using gradle I can run the application to the device, by using the script in gradle.

task run(type: Exec, dependsOn: 'installDebug') {
    def adb = "$System.env.ANDROID_HOME/platform-tools/adb"
    commandLine "$adb", 'shell', 'am', 'start', '-n', 'com.example.multidexproject/.MainActivity'     
}

and it is working fine .Now I would like to write a task for debugging the app . So there is any command for this in adb ?

like image 850
Krish Avatar asked Jan 20 '15 10:01

Krish


1 Answers

You can simply use adb logcat to show the logs. Check this page for all the options.

like image 146
SubliemeSiem Avatar answered Sep 21 '22 11:09

SubliemeSiem