Chapter 15. Debugging

In this chapter

  • 15.1 First Things First page 568

  • 15.2 Compilation for Debugging page 569

  • 15.3 GDB Basics page 570

  • 15.4 Programming for Debugging page 577

  • 15.5 Debugging Tools page 605

  • 15.6 Software Testing page 632

  • 15.7 Debugging Rules page 633

  • 15.8 Suggested Reading page 637

  • 15.9 Summary page 638

  • Exercises page 639

There are many practices, starting with program logic and data design, through code breakdown and organization, and finally implementation, that can help minimize errors and problems. We encourage you to study these; find good books on software design and software engineering, and put their advice into practice! Any program over a few hundred lines in size should be carefully thought out and designed, instead of just hacked ...

Get Linux® Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.