On Sun, 20 Nov 2011 Rocky Bernstein wrote:
> I've briefly looked at PadWalker which can look at "my" and "our"
> variables on a call stack. And while this is very useful, it is not
> the same as being able to evaluate a string in the context of a stack
> frame.
>
> Has anyone tried to create such an eval? A simple suggested interface
> would be to pass it an integer which indicates the call stack frame to
> use.

You might take a look at Eval::WithLexicals and how it is used in
Plack::Middleware::InteractiveDebugger (which, upon die(), lets the user
open a web-based REPL at any level of the call stack). Looks like there
is some manual work you have to do though.

--Brock

Reply via email to