Chain-of-Thought Debugging with DeepSeek-R1: When to Let AI Think Through Bugs