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