Skip to content

【工具自荐】在 Chrome Devtools 中查看 Android adb 日志 #5326

Open
@nieheyong

Description

@nieheyong

项目地址: https://github.com/nieheyong/logcat-in-devtools

执行以下命令,可以在 Chrome Devtools 中查看 adb logcat 日志 。
对前端来说很友好,不用再打开 Android studio。方便使用 Devtools console 已有的搜素过滤和分类

npx logcat-in-devtools@latest

image

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
  -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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions