Reputation: 11
I have many Log.i
and Log.d
in my app. When running on real device I see log output of every log statement in DDMS
either using session filter or no filter.
When I disconnect USB and perform actions in my app to produce debug
log lines it does not generate output lines. Checking historical logcat
output via adb
I got no entry out of my app
when running: logcat -b events -v time -d *:*
In manifest I have
android:debuggable="true"
Running adb -d shell getprop
contains
[ro.debuggable]: [0]
I guess similar question relates to mine: How can I enable/disable the Debug-mode on my Samsung device?
On the device (2.3.6) USB debuggig is enabled under settings-application-development.
My goal would be to get log entries generated by my app when device is not connected to computer.
Upvotes: 1
Views: 1603
Reputation: 71
It is possible to do remote debugging through logcat, without the need of extra software.
adb tcpip 5555
.adb connect 192.168.*.***
, replacing the *s with the device's local IP.If all went well, the device should now be connected, and you can run/debug and get logcat messages.
Upvotes: 3
Reputation: 16537
I would suggest using some kind of dedicated software for remote logging and debugging, so you can get all the logs without worrying about losing them when your device is disconnected. You can try using https://www.apphance.com/ library. It allows you to log, grab screenshots, intercept exceptions and report problems directly from your device. It doesn't matter if you have debugging enabled or not.
Upvotes: 0