The point is that you are still doing useful work, and therefore are "productive" but your conscious mind is now focused on a completely different task. While you do that, the subconscious is still working on the thorny debugging problem and when you get back to it, you will find it easier to choose the next steps that break through the chaos and lead to the root cause of the problem.
This is important even if you are in crunch mode because of a deadline. Usually what happens is that insane focus on fixing an important problem leads you into a long chain of insane fixes that mask the real problem. Eventually the scotch tape and rubber band fixes collapse anyway. Better to manage your mind so that you have a chance to reach full understanding of the problem so that you can make the RIGHT fix that is stable and longterm.