CS117 Programming Methodology

8/20/98


Click here to start


Table of Contents

CS117 Programming Methodology

The art of debugging

Why programs fail

Techniques for catching bugs

Tracing with print statements

Disadvantages of tracing

Assertions

Debuggers

Steps to follow in debugging

Difficulties

Example: correct output

Example: incorrect output

Example: insert trace statement

Example: insert assertion

Typical (good) procedure

Author: Roger Hartley

Email: rth@cs.nmsu.edu

Home Page: http://www.cs.nmsu.edu/~rth