I am in a desperate situation.
I am developing an Android application using the ADT in Eclipse on Ubuntu 10.04 on a netbook.
Unfortunately the netbook is not powerful enough to run the Device Emulator (when I try there are always issues). Then, I tried to debug on-device, but unfortunately my phone (Pulse) seems to have some problem.
It seems I can’t debug. I have already spent hours trying to get that working. And I can’t afford to upgrade my netbook/mobile now.
The only thing I can do is developing on Eclipse and run the application on the phone.
Is there any way I can debug while the application is running on my phone? Can I create somewhere a log with errors/warnings and even some custom messages I put in the code?
What a situation.
Any help would be appreciated.
Thanks,
Dan
On device debugging should work. Make sure you have
android:debuggable="true"in your application manifest. I previously had debugging issues that fixed themselves after rebooting the device.Alternately, you can use the Log class to print out log messages. These can be seen by running
adb logcator in the logcat view of Eclipse.Edit:
It seems that on some devices you have to run
echo 1 > /sys/kernel/logger/log_main/enablefromadb shellto enable logging.