Skip to content

View android adb logcat logs in chrome devtools console

Notifications You must be signed in to change notification settings

nieheyong/logcat-in-devtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logcat in devtools

View android adb logcat logs in chrome devtools console

npm package

Screenshot

image

Prerequisites

  • Android Debug Bridge (adb) should be installed and available in PATH and

  • adb devices command should success list the connected device

    $ adb devices
    List of devices attached
    DEVICE_SERIAL_xxxx     device

Basic Usage

npx logcat-in-devtools@latest

Advanced Usage

# Clean logcat buffer before start and also print logcat log in terminal
npx logcat-in-devtools@latest --clean --show-log

# only print messages which include "aaa" or "bbb" or "ccc"
npx logcat-in-devtools@latest  --match="aaa\|bbb\|ccc" --show-log

# use device with given serial
npx logcat-in-devtools@latest --serial DEVICE_SERIAL_xxxx

Cli options

$ npx logcat-in-devtools@latest --help

Usage: 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 <RegExp>   only print messages that match RegExp
  -s, --serial <SERIAL>  use device with given serial (overrides $ANDROID_SERIAL)
  -h, --help             display help for command