You're right, and this wouldn't test debugging skills to that extent. But even with a live debugger you need an appropriate problem.
In terms of whiteboard/paper questions, the fact this touches on the mindset/approach to debugging makes it far better than a lot of other whiteboard/paper questions I've seen.
I'm not sure what this tests if it was on a white board.