Debugging is the process of examining the state of a program - generally with a debugging tool - while it is running and attempting to find bugs that cause it to behave abnormally.

learn more… | top users | synonyms (1)

18
votes
8answers
1k views

Should debug code be left in place, always, or added only when debugging and removed when the bug has been found?

I, for one, only add debug code (such as print statements) when I'm trying to locate a bug. And once I've found it, I remove the debug code (and add a test case which specifically tests for that bug). ...
0
votes
6answers
383 views

How to Solve an Error?

I am novice developer. While development is going on, we come across different error issues. However for the novice of programming, it is always hard to directly understand them & solve them. I ...
25
votes
10answers
2k views

Concurrency: How do you approach the design and debug the implementation?

I've been developing concurrent systems for several years now, and I have a pretty good grasp on the subject despite my lack of formal training (i.e. no degree). There's a few new languages that have ...
5
votes
3answers
1k views

.Net Best Practices : Common Bugs Introduced By Refactoring, Carelessness, and Newbies

What are the common bugs introduced by refactoring, carelessness, and newbies? I would like to request the experienced programmers here to share their experience and list the bugs they used to ...
1
vote
2answers
192 views

In-Memory Debugger for .NET?

I don't know if "In-Memory debugger" is really what I mean, or if it's even possible to produce, but it's the best name I could come up with... Here's the tool I'm looking for: Given a variable ...
5
votes
8answers
349 views

How do you check bugs on your client's PC's?

It seems like there are a plethora of methods for dialing in and checking out what's going on on a client's PC. But they seem to boil down to just 2. Dialing in and checking it out with VNC and ...
2
votes
1answer
148 views

Do you use debugging in rails application? Why, when and how?

In Java, C and C++ I see people using intensively debugging strategies (because mostly they don't know about TDD). On the other hand, debugging too can help to understand software abstractions. So, ...
10
votes
5answers
333 views

Tips for debugging with very little info? [closed]

I've inherited a project with a fairly large codebase, and the original developer rarely, if ever, replies to emails. There's a ton of different ways to do some things in it, and I don't know all of ...
15
votes
9answers
706 views

How common are “bandage” fixes? [closed]

Imagine the following scenario: You've detected that your (or someone else's) program has a bug - a function produces the wrong result when given a particular input. You examine the code and can't ...
4
votes
3answers
902 views

Production-safe SQL stored procedure debugging

We have an enormous number of nested SQL stored procedures, and a number of different ways of debugging them (varying from developer to developer). So far, our methods include: An optional @debug ...
18
votes
13answers
2k views

How to improve your ability to debug existing code [closed]

A common task in the working world is dealing with existing, but buggy code. What are some tips to improve your skills as a debugger?
40
votes
9answers
1k views

How to test the tests?

We test our code to make it more correct (actually, less likely to be incorrect). However, the tests are also code -- they can also contain errors. And if your tests are buggy, they hardly make your ...
26
votes
8answers
7k views

How to most effectively debug code? [closed]

Bugs creeping into code can be minimized, but not entirely eliminated as it is written - programmers are, although many would disagree, only humans. When we do detect an error in our code, what can ...
4
votes
4answers
159 views

Debugging applications

In my current developement, I have decided to keep the command prompt open so I can see debug messages. For example, if something wasn't happening when it should, I would put a cout statement at every ...
22
votes
10answers
920 views

Why do new programmers seem to ignore compiler error messages/runtime exception messages? [closed]

I think we’ve all seen this. Beginners ask questions on Stack Overflow that follow the basic outline... I’m trying to do (very vague description of the goal) but it doesn’t work/I get an ...