in reply to Getting croak to show both caller and callee?

The callee is dynamically generated, but the code croaks before the callee is generated, or after? Deterministic dynamicity would suggest you could pass an extra variable in the callers arguments which would be passed to croak for debugging. Dynamicity being non-deterministic, there would not be any scope for Croak to be making predictions about where your code may end up.

Evaluating the dynamic code would allow you to see where the evaluation was dying returning $@ messages back through Croak when evaluation fails. Or using warn instead of die to allow the code to continue to evaluate and hence allowing you to determine where it is ending up, instead of where it should.

You may already be aware of these strategies, so without a little more detail, as Anonymous Monk priorly suggested...

  • Comment on Re: Getting croak to show both caller and callee?