Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
37 used & new from $4.99

Have one to sell? Sell yours here
 
   
Debugging Windows Programs: Strategies, Tools, and Techniques for Visual C++ Programmers (DevelopMentor Series)
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  

Debugging Windows Programs: Strategies, Tools, and Techniques for Visual C++ Programmers (DevelopMentor Series) (Paperback)

by Everett N. McKay (Author), Mike Woodring (Author)
4.5 out of 5 stars See all reviews (13 customer reviews)

List Price: $44.95
Price: $35.06 & this item ships for FREE with Super Saver Shipping. Details
You Save: $9.89 (22%)
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Only 3 left in stock--order soon (more on the way).

Want it delivered Thursday, July 16? Choose One-Day Shipping at checkout. Details
21 new from $29.99 16 used from $4.99

Frequently Bought Together

Debugging Windows Programs: Strategies, Tools, and Techniques for Visual C++ Programmers (DevelopMentor Series) + Advanced Windows Debugging (Addison-Wesley Microsoft Technology Series) + Windows via C/C++ (Pro - Developer)
Price For All Three: $127.74

Show availability and shipping details


Customers Who Bought This Item Also Bought

Windows via C/C++ (Pro - Developer)

Windows via C/C++ (Pro - Developer)

by Jeffrey M. Richter
4.6 out of 5 stars (14)  $44.09
Debugging

Debugging

by David, J Agans
4.8 out of 5 stars (19)  $16.15
Debugging Applications: Microsoft (Dv-Mps Programming)

Debugging Applications: Microsoft (Dv-Mps Programming)

by John Robbins
WindowsŪ Internals: Including Windows Server 2008 and Windows Vista, Fifth Edition (PRO-Developer)

WindowsŪ Internals: Including Windows Server 2008 and Windows Vista, Fifth Edition (PRO-Developer)

by Mark Russinovich
5.0 out of 5 stars (2)  $44.09
Multithreading Applications in Win32: The Complete Guide to Threads (Addison-Wesley Microsoft Technology Series)

Multithreading Applications in Win32: The Complete Guide to Threads (Addison-Wesley Microsoft Technology Series)

by Jim Beveridge
4.5 out of 5 stars (23)  $31.49
Explore similar items

Editorial Reviews

Amazon.com Review
Debugging Windows Programs: Strategies, Tools, and Techniques for Visual C++ Programmers sounds like it might focus on using a debugger exclusively, but this book is actually a wide-ranging tour of how to write better, more robust Visual C++ code that can be debugged more easily. Mixing plenty of nuts-and-bolts tips with higher-level strategies for effective testing, Debugging Windows Programs offers plenty of valuable expertise for any working C++ programmer.

The focus is on providing practical tips for more successful debugging, but many of the suggestions are for tweaking the way in which you write C++ code. Early sections examine how to take full advantage of assert statements (whether in C, MFC, or custom functions), which can be used to write safer code; trace statements, which are used to log debug messages, are covered, too. (Chances are that you haven't seen all of the APIs; luckily, they're rounded up for you here.) There are also numerous tips about C++ style, like how to choose readable variable names, along with the debugging dos and don'ts of working with errors, exceptions, COM objects, and threads.

Chances are, even if you are an experienced Visual C++ programmer, you'll learn something useful about how to get more out of the C++ debugger from the last sections of this book. From the right compiler and linker switches (which can be mysterious) to how to customize watch variables by tweaking the configuration files in C++, you'll learn how to be more productive with this tool. The text concludes with another useful section, an FAQ-style listing of dozens of common debugging questions and answers.

Although it's highly practical, the book also recommends thinking about your code, applying strategies for each aspect of debugging features consistently and effectively. The bottom line is that you not only will find bugs in present code, but also you'll design code that's easier to test and debug in the future. In all, Debugging Windows Programs delivers a good mix of practical tips and strategies that'll help C++ programmers create more robust (and testable) code. --Richard Dragan

Topics covered:
  • The debugging and testing process
  • Tips for writing better Visual C++ code
  • Assertions (C, MFC, and custom assert statements)
  • Logging output with trace statements (including trace APIs)
  • Exception handling and debugging
  • First-chance and last-chance exceptions
  • Tips for better debugging in C++
  • Naming conventions
  • Postmortem
  • Just-in-time (JIT) and remote debugging

  • Using map and .pdb files
  • Compiler and linking options
  • Debug windows
  • Customizing the C++ debugging environment
  • Basic and advanced debugging techniques
  • Catching memory leaks with the debug heap
  • Debugging multithreaded programs (including avoiding race conditions and deadlock)
  • A primer for COM debugging
  • Frequently asked questions and answers about debugging


  • Product Description
    (Pearson Education) Shows readers how to prevent bugs by taking advantage of the Visual C++ development tools and writing code in a way that makes certain types of bugs impossible. Provides specific solutions to the most common debugging problems. Softcover. DLC: Debugging in computer science.

    See all Editorial Reviews


    Product Details

    • Paperback: 592 pages
    • Publisher: Addison-Wesley Professional (August 28, 2000)
    • Language: English
    • ISBN-10: 020170238X
    • ISBN-13: 978-0201702385
    • Product Dimensions: 9 x 7.4 x 1.5 inches
    • Shipping Weight: 2.1 pounds (View shipping rates and policies)
    • Average Customer Review: 4.5 out of 5 stars See all reviews (13 customer reviews)
    • Amazon.com Sales Rank: #632,395 in Books (See Bestsellers in Books)

      Popular in these categories: (What's this?)

      #25 in  Books > Computers & Internet > Programming > Languages & Tools > Visual C++
      #36 in  Books > Computers & Internet > Programming > Languages & Tools > Debugging

    Look Inside This Book

    What Do Customers Ultimately Buy After Viewing This Item?

    Debugging Windows Programs: Strategies, Tools, and Techniques for Visual C++ Programmers (DevelopMentor Series)
    53% buy the item featured on this page:
    Debugging Windows Programs: Strategies, Tools, and Techniques for Visual C++ Programmers (DevelopMentor Series) 4.5 out of 5 stars (13)
    $35.06
    Advanced Windows Debugging (Addison-Wesley Microsoft Technology Series)
    23% buy
    Advanced Windows Debugging (Addison-Wesley Microsoft Technology Series) 4.9 out of 5 stars (21)
    $48.59
    Debugging Applications: Microsoft (Dv-Mps Programming)
    14% buy
    Debugging Applications: Microsoft (Dv-Mps Programming) 4.6 out of 5 stars (18)
    Memory Dump Analysis Anthology, Volume 1 (v. 1)
    10% buy
    Memory Dump Analysis Anthology, Volume 1 (v. 1) 5.0 out of 5 stars (1)
    $26.40

    Suggested Tags from Similar Products

     (What's this?)
    Be the first one to add a relevant tag (keyword that's strongly related to this product).
    Check a corresponding box or enter your own tags in the field below.
    (10)

    Your tags: Add your first tag
     
    Help others find this product — tag it for Amazon search
    No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

    Sell a Digital Version of This Book in the Kindle Store

    If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

     

    Customer Reviews

    13 Reviews
    5 star:
     (10)
    4 star:
     (1)
    3 star:
     (1)
    2 star:
     (1)
    1 star:    (0)
     
     
     
     
     
    Average Customer Review
    4.5 out of 5 stars (13 customer reviews)
     
     
     
     
    Share your thoughts with other customers:
    Most Helpful Customer Reviews

     
    14 of 14 people found the following review helpful:
    5.0 out of 5 stars "must have" for general debugging, April 8, 2002
    By developer (England) - See all my reviews
    In my experience, programmers fall into two categories: general (majority) and advanced (few); advanced ones understanding register and stack dumps etc, general ones being lost. This book covers the more general programmer, Robbins book the advanced. Comparing the two, you could write your own debugger and your own "core" dumps (which you can then examine) from Robbins book; with this one you can't, but it covers useful stuff missing from Robbins book (eg. PE format, address space partitioning). As such they have some overlap but supplement each other. Both books are essential to serious developers. I have one gripe with this and Robbins book: neither suggests outputting the mixed source/assembly/machine_code (.COD files); these are essential (without a .PDB) if a crash occurs so that the offending instruction etc. can be found, as many instructions usually follow a line of source; secondly, function locals only show in .CODs (as offsets from EBP) so making them easy to locate on a stack trace.
    Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



     
    12 of 12 people found the following review helpful:
    5.0 out of 5 stars Bugs? My codes only have features..., September 5, 2000
    By Min Kim (Laurel, MD) - See all my reviews
    This book should have been included with the MS Visual C++ documentation. If you can say "My code doesn't have bugs, only features," then you may skip this book. I found this book full of tips and tricks and secrets of visual c++ debugging. Just by having this book on your side, you will save hours and hours of frustration trying to find that one line that's keeping you from going home.
    Beginning few chapters are basic debugging knowledge every visual C++ programmers should be aware of. It explains more of 'preventive' programming styles so that you notice your bugs before your customers. Various topics including assert and compiler options are well explained, much better than the ones you would find in the vc++ documentation.
    I was happy to finally see some explanation on Dr. Watson messages. In Chapter 6: Debugging with Windows, Woodring and McKay explains all the precious information buried in those memory dumps that we often ignore. After all, all those hexadecimal numbers got to mean something, right?
    If you have been always unsure about your multithread knowledge, this book contains a good section on multithread programming issues and how to monitor your threads from the debugger.
    And for those who can't sleep at night because of some odd bug buried in thousands of lines of code, I recommend jumping right into Chapter 12: Desperate Measures. You are probably too frustrated to think straight now. Let this book help you calm down and look through your code step by step. This chapter simply provides a code checking checklist that you should probably copy down and tape it to your monitor.
    For those of you that are starting a fresh batch of code and thinking about buying this book, my recommendation is to read this book first, then code. You'll be a lot happier later. And for those of you that have already written a few million lines of code and trying to debug, you can apply some of the techniques found in this book to build up confidence in your code. I suppose if you live dangerously ("Just let 'er rip and hope for the best"), then most of the things explained in this book will only seem annoying to you, but I'm sure most of you programmers out there would like to know a few neat debugging tricks to show off in front of your co-workers.
    Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



     
    10 of 10 people found the following review helpful:
    5.0 out of 5 stars An invaluable book  packed with immediately useful macros, September 23, 2000
    By "awcoats" (Royal Oak, Michigan United States) - See all my reviews
    The vast majority of recommendations are so simple, yet so effective. Even if you only read random sections of this book, it will be of immediate benefit. This book in conjunction with John Robbin's book (Debugging Applications) are invaluable in not just giving you tips on how to find bugs but much more importantly how to code defensively to reduce the chances of bugs occurring in the first place.

    As the authors mention in the preface, they are not many original ideas in the book - but it is a good consolation of publicly available information. The book adds value by explaining when to use certain techniques and when to use others e.g. Chapter 5 -Using exceptions vs. return values.

    Because the book is specifically geared to C++ programmers there are some fantastic macros. For instance _CoCreateServer which wraps CoCreateInstance but gives detailed error information if anything goes wrong. Chapter 9 - Debugging Memory was particularly useful. Being able to detect leaking memory in ATL components (just like MFC does) was worth the price of the book alone.

    My only criticism is the use of the Arial font which makes the book a little getting used to seeing on the printed page.

    Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


    Share your thoughts with other customers: Create your own review
     
     
     
    Most Recent Customer Reviews

    3.0 out of 5 stars Useful but expensive and poorly produced
    Lots of useful information, particularly the tips for debugging release executables, but very poorly produced as a book. Read more
    Published on March 3, 2006 by S. Dutton

    4.0 out of 5 stars Very good but a little dated
    This is a very good book, although it is now a little dated. The explanations on customizing watch windows, and tuning default step over behavior has already payed for itself in... Read more
    Published on October 29, 2005 by nightowl03d

    2.0 out of 5 stars Bad Print
    I bought this book and was so shocked to see the print quality of the book. All the left inside pages had incomplete sentences due to print. Read more
    Published on January 13, 2005 by P. Lokhande

    5.0 out of 5 stars A MUST HAVE. PERIOD!
    This is the best book in debugging I have ever seen. What I like most about this book in addition to the technical value it has, is being concise and more to the point. Read more
    Published on July 21, 2004 by Software Engineer

    5.0 out of 5 stars Pays for itself within your first project
    I wish I had this book before - only discovered it recently. This book pays for itself within your first project. Surgical precision-like debugging. Wealth of information. Read more
    Published on September 28, 2002 by Supriyo B. Chatterjee

    5.0 out of 5 stars Hands down best book on Windows/VC++ debugging
    If you write sofware for Windows using VC++, you cannot afford to not have this book. End of story. Read more
    Published on September 7, 2001 by Donald Stark

    5.0 out of 5 stars No Mercy Debugging
    C++ bugs can be very difficult to find and can bring tears to the eyes of a programmer easily.(You know the bug is there but you just cant find it to save your life! Read more
    Published on July 26, 2001 by O. Durojaiye

    5.0 out of 5 stars Rich with Information and Well Written
    Writing versatile C++ is serious business. Moreover, the added complexity of Win32, MFC and ATL make debugging a challenging task. Read more
    Published on April 29, 2001 by Ivan S Salgo MD

    5.0 out of 5 stars The Memory Chapter Alone Was Worth the Price
    I've been programming for 20+ years with the last five using mostly Visual C++, but I learned some invaluable techniques for debugging memory leaks the first time I cracked it... Read more
    Published on January 22, 2001 by David Salahi

    5.0 out of 5 stars Stop Reading These and Buy This Book
    If you are a Windows programmer, then chances are you use MSVC.

    If that is the case, then you owe it to yourself to buy this book. Read more

    Published on December 7, 2000 by Kenneth Kozman

    Only search this product's reviews



    Customer Discussions

     Beta (What's this?)
    New! See all customer communities, and bookmark your communities to keep track of them.
    This product's forum (0 discussions)
      Discussion Replies Latest Post
      No discussions yet

    Ask questions, Share opinions, Gain insight
    Start a new discussion
    Topic:
    First post:
    Prompts for sign-in
      [Cancel]


       


    Product Information from the Amapedia Community

    Beta (What's this?)



    Look for Similar Items by Category


    $15 Off Olay, Pantene, and More

    $15 Off Olay, Pantene, and More
    This July, enjoy an extra $15 off select skin and hair care from favorite brands such as Olay, Pantene, Secret, and Ivory.

    Shop this offer now

     

    Best Books of 2008

    Best of 2008
    Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
     

    Buy Three Books, Get a Fourth Free

    4-for-3 Books
    Order any four eligible books under $10 and get the lowest-price book free in our 4-for-3 Books Store. See more details.
     

    Delta Machinery

    Shop for Delta tools
    Delta is the leader in innovative power tools, equipment, and accessories for woodworking professionals.

    Shop for Delta tools

     

     

    Feedback

    If you need help or have a question for Customer Service, contact us.
     Would you like to update product info or give feedback on images?
    Is there any other feedback you would like to provide?

    Your comments can help make our site better for everyone.


    Where's My Stuff?

    Shipping & Returns

    Need Help?

    Your Recent History

      (What's this?)
    You have no recently viewed items or searches.

    After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

    Look to the right column to find helpful suggestions for your shopping session.

    Continue shopping: Top Sellers
    Paranoia
    Paranoia by Joseph Finder
    My Soul to Lose
    My Soul to Lose by Rachel Vincent
    Glenn Beck's Common Sense
    Glenn Beck's Common Sense

    Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates