View android adb logcat logs in chrome devtools console
npm install logcat-in-devtoolsView android adb logcat logs in chrome devtools console
- Android Debug Bridge (adb) should be installed and available in PATH and
- adb devices command should success list the connected device
``shell`
$ adb devices
List of devices attached
DEVICE_SERIAL_xxxx device
`shell`
npx logcat-in-devtools@latest
`shellClean logcat buffer before start and also print logcat log in terminal
npx logcat-in-devtools@latest --clean --show-log
$3
`plaintext
$ npx logcat-in-devtools@latest --helpUsage: logcat-in-devtools [options]
View android adb logcat logs in chrome devtools console
Options:
-V, --version output the version number
-c, --clean clean logcat buffer before start
-l, --show-log also print logcat log in terminal
-m, --match only print messages that match RegExp
-s, --serial use device with given serial (overrides $ANDROID_SERIAL)
-h, --help display help for command
``