Skip to main content

Questions tagged [debugging]

Questions related to teaching how to debug code. Debugging is the process of identifying and removing errors (potential or otherwise) from code. Bugs are defects that prevent correct operation of a program or system.

Filter by
Sorted by
Tagged with
4 votes
5 answers
627 views

Is it possible to prove software to be bugless?

I have seen that programmers test their programs often to find out if there are bugs. But is there a way to prove mathematically that a software has no bugs? If it is possible, why it is used so ...
guest's user avatar
  • 51
6 votes
5 answers
197 views

Debugging a submission that works well on student's computer but not on my computer

I teach a course in C++. Often, students submit a homework assignment that works well in their computer (they send me a screenshot showing that it compiles and runs perfectly), but when I run the ...
Erel Segal-Halevi's user avatar
7 votes
6 answers
822 views

Why do educators not set an upper bound for the amount of times we're allowed to compile code?

First of all I'm sorry if the wording of my question is off so let me be more specific with what I mean; At my University we have some platforms we can code on and hand in assignments. They usually ...
genericCSPhDStudent's user avatar
7 votes
3 answers
180 views

Best way to pass on the problem solving experience

In my workplace, my team (working both on a ASP.Net MVC ecommerce and a C++ client) had a recent addition of two young members. One is a fresh graduate and the other worked as PHP programmer for some ...
phagio's user avatar
  • 73
15 votes
12 answers
7k views

Is asking students to debug existing code better than having them write new code?

Is asking students to debug code better than asking them to write code, if the goal is to give students a strong basis in creating error-free code? In my point of view, when we ask them to write a ...
i--'s user avatar
  • 831
7 votes
4 answers
220 views

What are good sample programs for learning to use a debugger?

One skill I teach students in Java 1 is how to use a debugger, specifically: single-stepping through code using breakpoints viewing the values of variables going up and down the call stack I have ...
Ellen Spertus's user avatar
16 votes
5 answers
1k views

Teaching students to hunt for and debug their own errors

I'm sure we've all had this kind of conversation: Student: Mr. Choirbean, my code is crashing. Teacher: Okay, what error is it giving you when you crash? Student: Error message? Was there one of ...
Ben I.'s user avatar
  • 33.7k