"The code is right but something is coming out wrong" was one of the favorite things I would hear from my intro to programming students.
I would call them out on it, too. The attitude they had was part of why they couldn't debug their program. They needed to adopt a question-and-test-assumptions approach, which can be intellectually uncomfortable. I hoped that by explaining to them why that comment was obviously wrong that they could start to learn the debugging process without me walking them through it, constantly asking pointed questions.
I would call them out on it, too. The attitude they had was part of why they couldn't debug their program. They needed to adopt a question-and-test-assumptions approach, which can be intellectually uncomfortable. I hoped that by explaining to them why that comment was obviously wrong that they could start to learn the debugging process without me walking them through it, constantly asking pointed questions.