Book Image

Learning NGUI for Unity

By : Charles Bernardoff (EURO)
Book Image

Learning NGUI for Unity

By: Charles Bernardoff (EURO)

Overview of this book

Table of Contents (17 chapters)
Learning NGUI for Unity
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Debugging on the device


It is possible to retrieve debug logs, warnings, and errors from the device while the game is running. This comes in very handy in debugging, especially if you have unwanted behavior recurrent on the device and not in the editor's play mode.

We can retrieve these logs through the console, using logcat, which is a combined message pipe for all Android applications, as follows:

  1. Connect your device to the computer with USB debugging enabled.

  2. Launch the game on your device.

  3. Hit the Windows key + R to open the Execute window (or launch the Terminal on Mac and move directly to step 3).

  4. Type cmd in the new window and hit Enter or click on the Ok button.

  5. In the newly opened command window, type cd followed by your Android SDK's platform-tools folder location and hit Enter. For example, in my case it is:

    cd C:\SDK\platform-tools
    

    Tip

    If your Android SDK isn't on the C: drive, you must request to change the current drive by entering the new drive letter followed by the : character...