Embedded ruby question

I am developing an application in which Ruby is embedded in a C++
program that defines some native classes and methods and then calls
ruby_exec to run some script. The script calls the C++ methods and all
works well.

Now I want to be able to examine ruby expressions inside these C++
methods. I'm trying to call rb_eval_string but that only kills my
script run.
Is there a way to do this?

btw, the expressions are simple variable queries, but not necessarily
ones that fall into one of the rb_?var_get methods (i.e. local function
vars)

ยทยทยท

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