Debug memory problems.