A smarter way to debug code