Amazon.com: The Art of Debugging with GDB, DDD, and Eclipse (9781593271749): Norman Matloff, Peter Jay Salzman: Books
The Art of Debugging with GDB and DDD and over one million other books are available for Amazon Kindle. Learn more


or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
Kindle Edition
 
   
Sell Back Your Copy
For a $12.83 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
The Art of Debugging with GDB, DDD, and Eclipse
 
 
Start reading The Art of Debugging with GDB and DDD on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

The Art of Debugging with GDB, DDD, and Eclipse [Paperback]

Norman Matloff (Author), Peter Jay Salzman (Author)
4.8 out of 5 stars  See all reviews (8 customer reviews)

List Price: $39.95
Price: $33.41 & this item ships for FREE with Super Saver Shipping. Details
You Save: $6.54 (16%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Only 8 left in stock--order soon (more on the way).
Want it delivered Monday, February 27? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for students on millions of items. Learn more

Formats

Amazon Price New from Used from
Kindle Edition $17.57  
Paperback $33.41  
Sell Back Your Copy for $12.83
Whether you buy it used on Amazon for $29.49 or somewhere else, you can sell it back through our Book Trade-In Program at the current price of $12.83.
Used Price$29.49
Trade-in Price$12.83
Price after
Trade-in
$16.66

Book Description

September 29, 2008 1593271743 978-1593271749 1

Debugging is crucial to successful software development, but even many experienced programmers find it challenging. Sophisticated debugging tools are available, yet it may be difficult to determine which features are useful in which situations. The Art of Debugging is your guide to making the debugging process more efficient and effective.

The Art of Debugging illustrates the use three of the most popular debugging tools on Linux/Unix platforms: GDB, DDD, and Eclipse. The text-command based GDB (the GNU Project Debugger) is included with most distributions. DDD is a popular GUI front end for GDB, while Eclipse provides a complete integrated development environment.

In addition to offering specific advice for debugging with each tool, authors Norm Matloff and Pete Salzman cover general strategies for improving the process of finding and fixing coding errors, including how to:

  • Inspect variables and data structures
  • Understand segmentation faults and core dumps
  • Know why your program crashes or throws exceptions
  • Use features like catchpoints, convenience variables, and artificial arrays
  • Avoid common debugging pitfalls

Real world examples of coding errors help to clarify the authors' guiding principles, and coverage of complex topics like thread, client-server, GUI, and parallel programming debugging will make you even more proficient. You'll also learn how to prevent errors in the first place with text editors, compilers, error reporting, and static code checkers.

Whether you dread the thought of debugging your programs or simply want to improve your current debugging efforts, you'll find a valuable ally in The Art of Debugging.


Frequently Bought Together

The Art of Debugging with GDB, DDD, and Eclipse + An Introduction to GCC: For the GNU Compilers GCC and G++ + Valgrind 3.3 - Advanced Debugging and Profiling for GNU/Linux applications
Price For All Three: $60.53

Some of these items ship sooner than the others. Show details

Buy the selected items together
  • In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • An Introduction to GCC: For the GNU Compilers GCC and G++ $13.63

    Usually ships within 1 to 3 weeks.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details

  • Valgrind 3.3 - Advanced Debugging and Profiling for GNU/Linux applications $13.49

    Usually ships within 1 to 3 weeks.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details



Editorial Reviews

About the Author

Norman Matloff, a computer science professor at UC Davis, is the author of several popular public-domain software packages and online tutorials.


Product Details

  • Paperback: 280 pages
  • Publisher: No Starch Press; 1 edition (September 29, 2008)
  • Language: English
  • ISBN-10: 1593271743
  • ISBN-13: 978-1593271749
  • Product Dimensions: 9.2 x 7.1 x 0.9 inches
  • Shipping Weight: 1.3 pounds (View shipping rates and policies)
  • Average Customer Review: 4.8 out of 5 stars  See all reviews (8 customer reviews)
  • Amazon Best Sellers Rank: #73,645 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

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

26 of 28 people found the following review helpful:
5.0 out of 5 stars Quite a gem!, February 2, 2009
By 
Mark K. (New York, NY) - See all my reviews
This review is from: The Art of Debugging with GDB, DDD, and Eclipse (Paperback)
I must come clean first - I know the authors. Peter asked me to review one of the sections in the book many ages ago when the book was in its infancy. The book has progressed much since then, and I must admit this is much more than I was expecting from a book about debugging!

Chapters 1 through 3 are the starter chapters that discuss the core debugging paradigms such as breakpoints and variable analysis. Chapter 1 goes through some of the basic concepts of debugging for those new to the idea (e.g., hobbyists and just-out-of-college programmers) but it's probably less useful for those already familiar with the concept. Chapter 2 goes through the basic debugging operations, such as setting breakpoints and analyzing variables, with an emphasis on how breakpoints can be set, cleared, and triggered using various methods. Chapter 3 goes through more on how variables of different storages can be viewed and displayed.

Chapters 4 and 5 are where things start to get interesting. Chapter 4 discusses how the debugger can be used to analyze core dumps, and touches on operating system concepts just enough to be productive in debugging for those not familiar with OS architectures. Chapter 5 discusses debugging threaded applications. As examples, applications written using popular multi-threaded and multi-process libraries such as pthread, MPI, and OpenMP are discussed, which makes the chapter more practical.

Chapter 6 is an interesting chapter. Section 6.1 goes through some common compiler error messages and how one should interpret them. They're concepts all first semester programming course students should read. It should be read either before chapter 1 or immediately after for beginning programmers, but it's also an entertaining section to read for the experienced programmers who goes through what the section discusses on a daily basis without ever giving it a second thought anymore. Section 6.2 should be a great read for anyone whose hair turned gray trying to debug Curses or NCurses applications under UNIX.

Chapter 7 discusses various tricks programmers use to write less buggy programs. Most of these are widely known concepts that are rarely taught in class - Vim tricks for matching parentheses, syntax highlighting, using errno and perror, libraries for catching buffer overflows, etc. Mentioning of the __LINENO__ directive is strangely lacking in this chapter, and I'm not sure how useful lint is these days but the chapter looks as complete as one would expect. The chapter also delightfully introduces strace and ltrace, though more examples would be helpful for those not familiar with OS concepts.

The final chapter is for those that want to use GDB/DDD/Eclipse in other languages. I have never felt the need to use debuggers with scripts but I probably would sing a different tune once I start using it.

The book admittedly has a Linux slant to it, but practical examples need a practical platform under which to give the examples and Linux is as accessible as it gets for most people. Most of the discussions are applicable in any platform, but they are especially applicable in Linux and UNIX variants. Chapters 1 and 6 should be a part of all introductory programming courses and should provide a good starting point to which a seasoned programmer can point a new programmer. The remaining chapters are relatively easy read yet packed with useful information to which programmers will refer back asking themselves, "what was that command that does ...?"
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


6 of 7 people found the following review helpful:
4.0 out of 5 stars Much better than man gdb, September 6, 2010
This review is from: The Art of Debugging with GDB, DDD, and Eclipse (Paperback)
The Art of Debugging isn't really much about the "art", although there is a very brief "principles of debugging" section at the beginning. It is about how to use GDB, DDD, and Eclipse effectively and completely. Very detailed guidance and examples. It's 250 pages but looks like less. If you want to become an expert at debugging software systems, there's probably no substitute for experience, but a concise tutorial on GDB and its various GUIs is a great start.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


5.0 out of 5 stars Good beginning Intro to GDB, October 23, 2011
Amazon Verified Purchase(What's this?)
This review is from: The Art of Debugging with GDB, DDD, and Eclipse (Paperback)
This is a good book for those new to GDB, which is what I was looking for. It's easy to read, and gets you into GDB quickly. At each step, the reader is shown how to do essential things like setting breakpoints, inspecting memory, and stepping through your program with easy to follow examples. The authors also show how both DDD and Eclipse work in debugging programs, as GDB is the back end for each.

The book isn't meant to be a comprehensive GDB reference, which is fine. Other books fill that role.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

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






Only search this product's reviews



Inside This Book (learn more)
Key Phrases - Statistically Improbable Phrases (SIPs): (learn more)
program crashes, seg fault, void printtree, breakpoint symbol, disabling breakpoints, debug dialog, program being debugged, temporary breakpoint, curses library, breakpoint conditional, pragma omp, core file, convenience variable, void insert, execution window, debugging symbols, source code window, void swap, debugging session, segmentation fault, conditional breakpoints, trace code
Key Phrases - Capitalized Phrases (CAPs): (learn more)
New Thread, Multiple Activities Context, Other Tools, Local Application, Edit Make, Name Value, Command Tool, Console Window, Source Text, Special Topics, Undo Redo, Principle of Confirmation, Next Nexti, Source Window, Open Debug Dialog, Step Stepi, Data Window, Set Breakpoint, Writable Smart Insert, Resuming Program Execution, Breakpoint Properties, Setting Breakpoints, Free Software Foundation, Electric Fence, Breakpoint Lists
Browse Sample Pages:
Front Cover | Table of Contents | First Pages | Index | Back Cover | Surprise Me!
Search Inside This Book:


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(7)
(5)
(2)
(2)
(1)

Your tags: Add your first tag
 

Customer Discussions

This product's forum
Discussion Replies Latest Post
Is this book ever going to get published? 7 Sep 24, 2008
See all discussions...  
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
   
Related forums





Look for Similar Items by Category


Look for Similar Items by Subject