debugging on android device

On my corona simulator no error codes come up but for some reason when testing an app on an android device, it doesn’t work as intended. Can someone please explain to me how I can go about finding the source of error when testing on the device? Everyone mentions “adb” but would I have to install that on the device I’m testing on or would I install that on my computer (mac) and then connect that to my android device? I found this: http://docs.coronalabs.com/guide/distribution/androidBuild/index.html#debugapp

and followed as best I could but I get confused here http://developer.android.com/sdk/installing/adding-packages.html 

when it says go to tools and then execute android sdk from terminal (which tells me that command was not found). 

thanks in advance and any help is much appreciated!

Hi Nate,

Did you see the recent tutorial on “Basic Debugging”? This might help.

http://www.coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Take care,

Brent

Thanks for the link! For anyone else that stumbles upon this, I found this helpful as well. http://forum.xda-developers.com/showthread.php?t=865685 

This way to get to adb, all you have to do is type adb devices into terminal and then “adb logcat Corona:v *:s”

to show messages coming from corona.

This is what I did to install and debug:

  1. I installed Android SDK and in the tools install adb and google usb driver.
  2. Copy over the .apk to any directory, install a AppInstaller and install it by locating that directory.
  3. Use this tutorial to set up usb debugging: http://visualgdb.com/tutorials/android/usbdebug/
  4. Use “adb devices” and check if your device is there.
  5. Use “adb logcat Corona:v *:s” in adb to see the console log.
  6. Open up your app. 
  7. Console log messages appear.

Hi Nate,

Did you see the recent tutorial on “Basic Debugging”? This might help.

http://www.coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Take care,

Brent

Thanks for the link! For anyone else that stumbles upon this, I found this helpful as well. http://forum.xda-developers.com/showthread.php?t=865685 

This way to get to adb, all you have to do is type adb devices into terminal and then “adb logcat Corona:v *:s”

to show messages coming from corona.

This is what I did to install and debug:

  1. I installed Android SDK and in the tools install adb and google usb driver.
  2. Copy over the .apk to any directory, install a AppInstaller and install it by locating that directory.
  3. Use this tutorial to set up usb debugging: http://visualgdb.com/tutorials/android/usbdebug/
  4. Use “adb devices” and check if your device is there.
  5. Use “adb logcat Corona:v *:s” in adb to see the console log.
  6. Open up your app. 
  7. Console log messages appear.