Recaf
Recaf copied to clipboard
The bytecode obtained through 'Attatch to remote' is not the bytecode actually run in the JVM
Describe the bug
Sometimes we want to verify that our agent works as expected by viewing the bytecode that actually runs in the JVM.
To Reproduce
Steps to reproduce the behavior:
- Create an agent.jar file, which modifies the bytecode of a class.
- Start the project with the -javaagent:agent.jar parameter and connect to it using Recaf's Attach to Remote link.
- View the decompiled output of the target class and compare it to its actual behavior.
Exception
Screenshots
https://github.com/Col-E/InstrumentationServer/issues/7 - Known issue - Not really dug into a proper fix yet.
This project seems to be a good reference https://github.com/alibaba/arthas