Blog

Debugging Unity on Android

Just wanted to document the steps for how to monitor debug messages and such for a running Unity application on Android for Mac:

Step 1:

Open up a Terminal window.

Step 2:

In Finder locate the adb application in the Android SDK (under platform-tools as of writing this).

Step 3:

Drag the adb application into your terminal window to autocomplete the path.

Step 4:

Add “logcat -s Unity” after the adb application path (without the quotes). Your command should now look similar to: …android-sdk-macosx/platform-tools/adb logcat -s Unity OR just add “logcat” to gain access to everything the device is sending in case you need more detail.

Step 5:

Press return and get your debug on.

2 Comments

  1. August 22, 2012

    Hi there,

    A comfortable way to view your debug messages on android or ios is to use the KGFDebug system.
    It displays all your logs at runtime in a filtered and structured way. Even on very small display resolutions.

    Checkout the screenshots and webdemo here:
    http://www.kolmich.at/kolmich/index.php?option=com_content&view=article&id=112&catid=86&Itemid=475&lang=en

    Checkout the documentation here:
    http://www.kolmich.at/documentation/KGFDebugGUI_Manual.html

    You can buy it in the asset store.

  2. Random Dude
    March 2, 2014

    Old post.
    Still helpful.
    Thanks man!