Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
1oid committed Jun 2, 2023
1 parent fbd8792 commit 5ed962b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
# remotejs
remote execute js when debugger.paused

## example
```shell
前置条件, 需要安装chrome

# 查看帮助
./remotejs -h
GLOBAL OPTIONS:
--url value, -u value open url when open chrome, default blank url
--chrome-path value, --cp value use specified chrome path
--proxy value set proxy for browser
--remote-debug-address value use remote chrome debugging
--web-listen value web server port (default: "8088")
--help, -h show help


./remotejs # 打开一个空白的浏览器
./remotejs -u [URL] # 打开一个浏览器,并加载指定url
./remotejs --remote-debug-address "ws://127.0.0.1:9222" # 指定一个远程浏览器(需要目标开remote-debugger-port)

# 其他看 --help
```

## Todos (下次一定的事情)
- [ ] 多tab的debugPauseEvent捕获
- [ ] 配置文件
- [ ] 其他

0 comments on commit 5ed962b

Please sign in to comment.