in reply to How to watch a reference in the debugger?
IIRC someone has mentioned a module that does this kind of debugging with tied variables. Try to super-search for it.
Update: here's it: Debugging with tied variables