Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

5
votes
5answers
151 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 ...
6
votes
2answers
88 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 ...
14
votes
12answers
6k 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 ...
7
votes
3answers
152 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 ...
17
votes
5answers
427 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 ...