Work has sponsored a week of hacking and I've spent it doing stack tricks. I hope to use these features to build a better debugger. For now, here's the latest function. Consider what caller( N ) does. Now consider a goto( N ) that pops the stack back up N frames.
I plan to use it to let a debugger pop up to any level in the currently running program and resume from anywhere reasonable.
wild (Score:1)
-- dagolden
Re: (Score:1)
Right now caller() doesn't show loops but it *could*.
Re: (Score:1)
It would be nice to have a wrapper for a low level caller() that returns every single scope, and then filters it, for example to skip things marked as wrappers, or to cut off any calls within local to a certain class or Carp clan or some explicit delimiter. Code that uses caller() is generally either tricky code that wants as much detail as possible, or code that is being tricked and really cares only about high level things.
Maybe there's ye
Implementation? (Score:1)