|

Prentice Hall

Engineering

My Instructor Resource Center :  Log in or request access

Practical Debugging in C++
Ann R. Ford
Toby J. Teoreyboth of the University of Michigan, Ann Arbor

ISBN-10: 0130653942
ISBN-13:  9780130653949

Publisher:  Prentice Hall
Copyright:  2002
Format:  Paper; 112 pp
Published:  09/19/2001
Status: Out of Print


Suggested retail price: $21.80
  We're sorry, this product is no longer available. Please contact your Pearson rep if you are using this product and need instructor resources.



Appropriate as a supplementary text for any course teaching C++ programming or using C++ as a programming language in departments of Computer Science, Engineering, CIS, MIS, IT, and Continuing Education.

Practical Debugging in C++ is the first debugging text written expressly for the beginning to intermediate level programmer. For the beginning programmer, it is a short, clear debugging guide that serves as a valuable companion to their introductory programming text when writing C++ programs. For the more advanced programmer, the guide provides a quick primer in C++ debugging with a series of examples of common syntax and semantic errors and how they can be detected and corrected. The authors cover both tracing and interactive debugger techniques.

  • Explanations of syntax errors (and warnings) and the most common semantic and run time errors for C++.
    • Shows students how to fix these errors.

  • Coverage of how to trace a program's progress during execution.
    • Teaches students how to trace the changes in variables and follow the execution of the program to locate errors that are not obvious.

    • Saves time for instructors who can ask students to show them a program trace when they come for help during office hours.

  • Coverage of interactive debuggers—Shows several examples from Microsoft® Visual C++™ and Metrowerks CodeWarrior.
    • Teaches students how to use these popular debuggers, including stopping the program at any point and keeping track of all changes in variables.

  • Summaries of common bugs and error detection methods.
    • Gives the students a one-page checklist of common bugs to reference when diagnosing and fixing errors.

  • Several chapters contain sample programs of various lengths and complexity with built-in errors.
    • Familiarizes students with a wide variety of programming errors and shows how to fix them either manually, with tracing, or when dealing with larger programs, with Microsoft Visual C++ and Metrowerks CodeWarrior.

  • Modular Format—Chapters can be read independently of one another.
    • Allows the more experienced student to quickly review their knowledge of debugging without having to wade through the fundamentals.



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® Visual C++™. Example: Debugging a Sample C++ Program Using Microsoft® Visual C++™.



Appendix A: The 32 Most Common Bugs in First Programs.


Appendix B: Checklist for Error Detection and Prevention.

Ann R. Ford is currently a Lecturer of electrical engineering and computer science at the University of Michigan, Ann Arbor. She has taught introductory courses in C and C++ programming for the past 10 years and has applied and refined these debugging principles for her many students. She received the B.A. degree in psychology from the State University of New York at Buffalo and the M.S. degree in computer and communication science from the University of Michigan, Ann Arbor.

Toby J. Teorey is currently a Professor of electrical engineering and computer science at the University of Michigan, Ann Arbor. He received the B.S. and M.S. degrees in electrical engineering from the University of Arizona, Tucson and the Ph.D. degree in computer science from the University of Wisconsin, Madison. He is the author of Database Modeling and Design (1999) and has taught courses in C++ programming and database management systems extensively.

With this book, beginning programmers finally have a practical book on debugging techniques for C++. Practical Debugging in C++ serves as an important companion to any introductory textbook on C++ programming. Whether in the computer lab or at home, programmers should keep this book handy for quick reference when writing and debugging C++ programs.

The book includes chapters on:
  • common syntactic and semantic programming errors, with illustrative examples
  • tracing techniques using output statements (tout) in C++ programs, with examples illustrating how tracing can be easily inserted into your programs
  • application of tracing to more advanced C++ constructs such as strings, pointers, structs, and classes
  • use of the interactive debugger, with examples from Microsoft Visual C++ and Metrowerks CodeWarrior

Beginning programmers will want to use this book because it is easy and fast to read with many simple examples. It will save many frustrating hours of debugging time when the tracing and system debugger techniques illustrated in the text and figures are applied.

For the intermediate programmer, particularly those with some experience in other languages, this guide provides a quick up-to-speed primer in C++ debugging with a series of examples of common syntax and semantic errors and how they can be detected and corrected.

Instructors in introductory programming classes will want to recommend this book to their students because it will enable them to become much more self-sufficient, greatly reducing the time students will need for individual consultation regarding their programs.

ESource Access Pack
Esource
©2001 | Prentice Hall | Paper | Instock
ISBN-10: 0130904007 | ISBN-13: 9780130904003


Interwrite Personal Response System
EduCue, Addison-Wesley & Benjamin Cummings
©2004 | Prentice Hall | Electronic Supplement | Instock
ISBN-10: 0321267354 | ISBN-13: 9780321267351


Pearson Higher Education offers special pricing when you choose to package your text with other student resources. If you're interested in creating a cost-saving package for your students contact your Pearson Higher Education representative.