BN.com Gift Guide

Practical Debugging in C++ / Edition 1

Paperback (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 90%)
Other sellers (Paperback)
  • All (15) from $1.99   
  • New (2) from $33.30   
  • Used (13) from $1.99   
Close
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$33.30
Seller since 2009

Feedback rating:

(77)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
2002-01-15 Paperback New This is a new 2002 softcover. Pages are clean with a secure binding. Daily shipping. ALL ORDERS ARE GUARANTEED.

Ships from: MAYFIELD HEIGHTS, OH

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$35.52
Seller since 2014

Feedback rating:

(25)

Condition: New
Fast Shipping in bubble mailer with traceable delivery confirmation number. Book is new, though cover shows slight wear from storage and handling in the store.

Ships from: Albuquerque, NM

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
Page 1 of 1
Showing All
Close
Sort by

Overview

Practical Debugging in C++ is the first debugging book 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 book 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 debugger techniques. Chapter topics include Common Syntax and Semantic Errors; Tracing Techniques for Debugging; Trace Debugging for More Advanced C++ Constructs; Using an Interactive Debugger. Appropriate as a supplementary book for C++ programming or using C++ as a programming language in departments of Computer Science, Engineering, CIS, MIS, IT, and Continuing Education.
Read More Show Less

Product Details

  • ISBN-13: 9780130653949
  • Publisher: Pearson Education
  • Publication date: 9/1/1901
  • Edition number: 1
  • Pages: 112
  • Product dimensions: 6.00 (w) x 9.00 (h) x 0.25 (d)

Table of Contents

Preface
Ch. 1 Introduction 1
Ch. 2 Common Syntax and Semantic Errors 5
2.1 Chapter Objectives 5
2.2 Syntax Errors 5
2.3 Syntax Warnings 11
2.4 Semantic Errors 15
Ch. 3 Tracing Techniques for Debugging 21
3.1 Chapter Objectives 21
3.2 Basic Tracing 21
3.3 Common Errors Detectable with Basic Tracing 28
3.4 Trace On and Off Flag 35
3.5 Tracing Using Function Calls 39
3.6 Tracing for Data in Arrays 40
3.7 Where to Insert the Traces and What Variables To Display 47
3.8 Using the Assert Macro 48
Ch. 4 Trace Debugging for More Advanced C++ Constructs 51
4.1 Chapter Objectives 51
4.2 Strings 51
4.3 Pointers 55
4.4 Structs 60
4.5 Classes 64
Ch. 5 Using an Interactive Debugger 69
5.1 Chapter Objectives 69
5.2 Fundamentals 69
5.3 Debugging with Metrowerks CodeWarrior 71
5.4 Example: Debugging a Sample C++ Program Using Metrowerks CodeWarrior 76
5.5 Debugging with Microsoft Visual C++ 84
5.6 Example: Debugging a Sample C++ Program Using Microsoft Visual C++ 89
App. A The 32 Most Common Bugs in First Programs 97
App. B Checklist for Error Detection and Prevention 99
Bibliography 102
Index 103
Read More Show Less

Preface

This book is a tutorial on debugging techniques for both the beginning and intermediate programmer. For the beginning programmer it is meant to be a companion book to any introduction to programming in C++. Ideally this book is for students to take to their computer labs with them for quick reference when writing and debugging C++ programs. 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.

The motivation for this book came as a result of innumerable sessions in the computer lab with introductory programming classes at the University of Michigan. Unfortunately, many beginning programmers subscribe to the "programming by blind faith" method, writing the complete program, then hoping it will run correctly the first time without doing any intermediate testing, and then panicking when it crashes or generates bad data that cannot be explained. Each time they come to us with "What do I do now?" we go back to the program together to look over the basic logic, and then start inserting traces to check the intermediate results and localize the sources of error. We have come to the conclusion that students need a short, clear debugging guide as a valuable addition to their other programming tools, something they can easily carry with them and with which they can supplement their introductory programming textbooks.

Chapter 1 is a short motivational chapter that summarizes the common sources of errors in computer programs.

Chapter 2 describes the most commonsyntactic and semantic programming errors (with illustrative examples) and explains how to correct them.

Chapter 3 shows the student how to use output statements (cout) to trace variables in C++ programs, and how tracing can be easily inserted into his or her own programs. Several examples are given to illustrate how tracing can help find bugs—especially when a program runs without any runtime errors, but the results are incorrect. It also is useful to find errors quickly when the program crashes with an error message or just hangs up, leaving the programmer with no option but to kill the program and reboot the computer, over and over, until the bug is found.

Chapter 4 applies the basic principles of tracing to more advanced C++ constructs, such as strings, pointers, structs, and classes.

Chapter 5 illustrates how to use a debugger effectively as follow-on to the tracing method discussed in Chapters 3 and 4. Most compilers come with debuggers now, and students need to be able to use them at some point during their first course in programming. We strongly recommend learning to use both tracing and the debugger as alternative approaches.

The appendices give a summary of the most common bugs found in first C++ programs and a checklist of techniques for error detection and prevention. The examples in this book conform to the 1998 ISO/ANSI C++ standard.

Who should read this book?

Beginning programmers should benefit from this book because it is a quick read with many simple examples, both numeric and non-numeric. It should save them many frustrating hours of debugging time when they apply the tracing and system debugger techniques illustrated in Chapters 3 to 5. Furthermore, anyone using this book can easily read any chapter independently of the others. This should also appeal to the more experienced programmers who want to review their knowledge of debugging without wading through all the fundamentals. Instructors in introductory programming classes may want to recommend this book to their students, because it will make them much more self sufficient, and it will greatly reduce the time they need for individual counseling for their programs.

How to use this book

Beginning programmers should read Chapters 1 and 2 to get a quick overview of the basic types of errors programmers tend to make. Chapters 3 and 4 are self-contained discussions of how to use tracing in your programs with a minimum of effort. Chapter 5 is more advanced and may be used later, when you feel the need for more debugging options, especially for larger programs.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)