First, you don't necessarily know what local variables are, unless the original 
compiler included the line number information in the class file. If it did, you 
could try to scan for store instructions.

Second, you can look for the putfield and putstatic instructions to see when 
instance and static variables are modified, but that won't catch any 
modifications that occur through reflection.

God bless,
-Toby Reyelts
> I also was working on a simple BCEL based tool that will allow me to track all 
> variables, global and LOCAL, at the moment when they are changed. I just want to 
> insert instructions into the Method of profiled class to printout name and the 
> value of a variable - local variables too! - when they are changed. Any 
> suggestions??
> thanks!!
> Vicki

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to