Runtime evaluation of variables

Hi there,

I'm currently working with ruby and set_trace_func function. I need to
find local_variables, instance_variables and method parameters.

for local variables and instance variables, something like that works :
set_trace_func proc { |event, file, line, id, binding, classname|
local = eval("local_variables", binding)
instance = eval("instance_variables", binding)
...
}

but I can't find a way to find method parameters....

In fact, method parameters seems to be include in local variables,but on
call event, I can't distinguish some null parameters and come local
variables not yet assigned

Am I wrong ?

Is there another way to solve my problem ?

Thanks

ยทยทยท

--
Posted via http://www.ruby-forum.com/.