... I will only ever need to access it immediately while it's still in scope ...
The phrase "... it will error out with a message ..." in the OP suggests that an exception has already been thrown, suggesting in turn that the scope of the object has been exited and the object itself marked for garbage collection. Does the thrown exception carry a copy of the object reference, thereby defeating GC, in addition to a mere stringization thereof? That seems to me to be the only hope you would have of reliably going back to the object in question with the object of dumping it in some useful way.
Give a man a fish: <%-{-{-{-<
In reply to Re^3: Printing an object when you only have the refaddr string for it
by AnomalousMonk
in thread [SOLVED] Printing an object when you only have the refaddr string for it
by delias_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |