1.0.0 • Published 3 years ago

v8debugger-server v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 years ago

v8-Debugger Server

Usage

1.依赖添加

添加"v8debugger-server":"^1.0.0"package.jsondependencies闭包中.

npm install v8debugger-server --save   # 安装模块               

2.chrome服务发现

1.chrome中输入chrome://inspect/#devices

2.点击Configure按钮,在弹出框中配置localhost:38989

3.使用USB连接Android手机和PC,执行npm run v8debugger:server启动服务(需安装adb),可以在当前页面的Remote Target下方看已启动的v8debugger-server的服务了

4.App启动后在terminal中可以看到role=android_client connected

5.点击inspect启动devtool面板后可以看到role=chrome_client connected

6.devtool和V8互通的协议都能在terminal中看到。尽情调试吧~~~。