Skip to content

Commit

Permalink
Add README-zh_CN.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xtherk committed Jun 11, 2022
1 parent ef86e7e commit 580d747
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
10 changes: 10 additions & 0 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1. `git clone https://github.com/xtherk/bytehook-examples.git`
2. 打开IDEA并加载`bytehook-examples`项目
3. 编译 `bytehook-examples`项目
4. 运行`Main`并查看控制台打印结果
5. 请添加VM Option `-javaagent:/your/path/bytehook-agent.jar -Dbh.agent.init.disabled=true`

> `-Dbh.agent.init.disabled=true`的作用是为了禁止`bytehook-agent`对模块进行初始化,改为由我们程序控制何时初始化(Modules#initialize()),方便添加模块资源路径。
> 该选项一般无需使用,唯一的用途就是开发环境方便调试
6. 再次运行`Main`并查看控制台打印结果

14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
1. `git clone https://github.com/xtherk/bytehook-examples.git`
2. Open your IDEA and load `bytehook-examples` project
3. Compile `bytehook-examples` project
4. Run `Main` and view print result
5. Please add VM option `-javaagent:/your/path/bytehook-agent.jar -Dbh.agent.init.disabled=true`
[中文](README-zh_CN.md)

2. `git clone https://github.com/xtherk/bytehook-examples.git`
3. Open your IDEA and load `bytehook-examples` project
4. Compile `bytehook-examples` project
5. Run `Main` and view print result
6. Please add VM option `-javaagent:/your/path/bytehook-agent.jar -Dbh.agent.init.disabled=true`

> `-Dbh.agent.init.disabled=true` The purpose of disable the initialization of `javaagent` is to add module resource paths in the dev-environment
6. Run `Main` and view print result again
7. Run `Main` and view print result again

0 comments on commit 580d747

Please sign in to comment.