This content has been marked as final. Show 3 replies
There currently isn't a way to do this with JPDA. You would have to use byte code instrumentation which would be tricky (see java.lang.instrument).
Can you please give me a good refrence to learn about byte code instrumentation. I really need to learn about it inorder to finish my program. I couldn't find a good one to start with. Thanks
Sorry, I don't know of any books, tutorials, ... about BCI. If you search on google, you will find quite a few references that will help. You should also check out the contents of the demo/jvmti directory in the JDK for some examples.