-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
xtherk
committed
Jun 11, 2022
1 parent
ef86e7e
commit 580d747
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`并查看控制台打印结果 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|