Search code examples
google-chromeconsole.logchrome-debugging

How to get console logs on Chrome mobile without usb debug?


I once came across an SO answer that gave a Chrome URL to navigate to, that had a button to "enable" JS console logging. After enabling the logging, that tab would show the console logs of other Chrome tabs.

I know this answer seems like a duplicate, but I'm having a lot of trouble finding how to do that again. It was super convenient since it gave the console logs on any Chrome browser without needing a USB connected.

Any ideas? I know I came across it in an SO question about iOS debugging.


Solution

  • Found it! So, it's actually a Chrome on iOS only feature.

    URL: chrome://inspect

    That URL won't show anything on Chrome for Android, which tripped me up. But, on iOS it shows a "Start Logging" button.

    A simulated iPhone screen displaying the Chrome developer tools interface with the URL "chrome://inspect" and a JavaScript Console open. The console logs text entries.

    Answer from: https://stackoverflow.com/a/55433616/2096769