9

Debugging when you deallocated an objected which is still referenced by pointers else where is like find waldo with a 2x2 meter picture. Except you don't know what waldo looks like.

Comments
  • 2
    And there rust be like:
    " Hol up. You trying to use that reference who's lifetime is out of scope? I will not let you do this!"
  • 1
    dress Valdo up to look like something you'd notice :) And hook him up with a GPS tracker.
    Proxy it
  • 3
    Or you use something like valgrind which basically straps a landmine to each of Waldo's feet. Then all you need to find is the crater.
Add Comment