-
git clone https://github.com/xtherk/bytehook-examples.git
-
Open your IDEA and load
bytehook-examples
project -
Compile
bytehook-examples
project -
Run
Main
and view print result -
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 ofjavaagent
is to add module resource paths in the dev-environment -
Run
Main
and view print result again