Enabling Console Debug Logs

If you need help with iOS, please see Enabling Console Debug Logs for iOS.

During development, you may encounter issues with the Skillz UI. Fortunately, the Skillz Android SDK has debug logging that you can view to help with troubleshooting. Follow the instructions below to enable logging.

Instructions

  1. Make sure the Skillz UI is open on your device BEFORE starting a match.
  2. In Android Studio, switch to the "Logcat" tab. It should be near the bottom of the window.
    1. Alternatively: See the "Terminal Logs" section below for how to access your command line through the console window
  3. We'll be opening Skillz's diagnostics screen. Press (volume) up, up, down, down, up, down, up, down on your device's volume rocker.
  4. The diagnostics screen should now be open. See the screenshot below.
  5. Press the "TOGGLE LOGGING" button. A toast will display to indicate that logging is enabled.
  6. Press the "OK" button to close the diagnostics screen.
  7. Go back to the Android Studio Logcat tab. This is where your logs will appear.
  8. Start a match.
  9. At this point, the "Logcat" pane should be displaying logging calls. We recommend you set the logging level to "Verbose".
  10. Copy all the text that was output to the "Logcat" pane and send it to integrations@skillz.com for further analysis.

 

NOTE: The diagnostics screen should look similar to:

Diagnostics_Screen.png

 

Terminal Logs

These instructions assume that you are running your terminal commands from the Android platform-tools directory (normally found under Android Android/sdk/platform-tools directory), or that the Android Platform Tools are a part of your Terminal PATH.

Connect your device(s) to your laptop via USB cable.

If you have only one device connected, you can simply use terminal command "adb logcat" and the console will send commands to the only connected device.

If you have multiple devices connected, first you need to list the devices with "adb devices". It will give you a list of devices with serial number, and name. Find the serial number for the device you want to log with. Use command "adb -s <serial> logcat" where <serial> is the serial from the "adb devices" command.

Screen_Shot_2019-03-29_at_10.50.35_AM.png

Once you have ADB logcat running, you should see live log messages from the attached device. You may now return to step 3 in the instructions above.