[Univ of Cambridge] [Dept of Engineering]
next up previous contents
Next: Common Difficulties and Mistakes Up: More C++ Previous: Performance

Debugging

``Code Complete'' by Steve McConnell (Microsoft Press, 1993) is in the CUED library. It has very useful sections on testing and debugging, and quotes results from investigations of software quality assurance. On p.567 it notes that the industry average for code production is 8-20 lines of correct code per day. On p.610 it notes that industry average experience suggests that there are 15-50 errors per 1000 lines of delivered code. The recommendation is to design and code defensively - it saves time in the end.

C++ is a strongly-typed language with many features to help write safe code, but you still need to be cautious

See the Debugging handout for details of the wdb debugger.


next up previous contents
Next: Common Difficulties and Mistakes Up: More C++ Previous: Performance
Tim Love
2001-07-05