Practical Debugging in C

Ann R. Ford, Tobey J. Teorey · 2002

1. Introduction. Chapter Objectives. Motivation for Debugging Skills. Approaches to Debugging. 2. Common Syntax and Semantic Errors. Chapter Objectives. Syntax Errors. Syntax Warnings. Semantic Errors. 3. Tracing Techniques for Debugging. Chapter Objectives. Basic Tracing. Common Errors Detectable with Basic Tracing. Trace On and Off Flag. Tracing Using Function Calls. Tracing for Data in Arrays. Where to Insert the Traces and What Variables to Display. Using the Assert Macro. 4. Trace Debugging for More Advanced C++ Constructs. Chapter Objectives. Strings. Pointers. Structs. Classes. 5. Using an Interactive Debugger. Chapter Objectives. Fundamentals. Debugging with Metrowerks CodeWarrior. Example: Debugging a Sample C++ Program Using Metrowerks CodeWarrior. Debugging with Microsoft(R) Visual C++ . Example: Debugging a Sample C++ Program Using Microsoft(R) Visual C++ . Appendix A: The 32 Most Common Bugs in First Programs. Appendix B: Checklist for Error Detection and Prevention.

Read the paper · More papers on PaperTik