Question: How do I get Chrome console logs from an Android device?
Answer: Use Chrome remote debugging.
- On the Android device, enable Developer options and turn on USB debugging.
- Connect the device to your computer with a USB cable and confirm the "Allow USB debugging" prompt on the phone. (Optional check: run
adb devicesand make sure the device is listed as device, not unauthorized.) - Open Chrome on the Android device and load the page you want to inspect.
- On your computer, open Chrome and go to
chrome://inspect#devices. - Make sure Discover USB devices is checked. Your device and its open tabs appear in the list.
- Click Inspect next to the tab. A DevTools window opens on your computer with the usual Console, Network and other panels for that remote tab.
- Select the Console tab to read the logs; to capture Pushwoosh Web SDK logs, reload the page with DevTools already open.
Reference: Chrome DevTools — Remote debug Android devices.
Comments
0 comments
Please sign in to leave a comment.