Debugging Trick

A neat trick when debugging: give the object a unique ID (to avoid confusion if it's relocated by the garbage collector in a way that changes its address), then break on that ID. I really, really want someone to write a good book on debuggers.
comments powered by Disqus