Debugging

Tips from The Practice of Programming by Kerninghan and Pike

  • Look for familiar pattern
  • Examine the most recent changes
  • Don’t make the same mistake twice
  • Debug it now, not later
  • Get a stack trace
  • Read before typing
  • Explain your code to someone else
  • Make the bug reproducible
  • Divide and conquer
  • Study the numerology of failures
  • Display output to localize your search
  • Write self-checking code
  • Write a log file
  • Draw a picture
  • Use tools
  • Keep records

4 Responses to “Debugging”


  1. 1 Sales Leads July 4, 2018 at 3:49 am

    We absolutely love your blog and find almost all of your post’s to be just what I’m looking for. Does one offer guest writers to write content to suit your needs? I wouldn’t mind creating a post or elaborating on most of the subjects you write in relation to here. Again, awesome blog!

  2. 2 Jesse Grillo Jesse Grillo September 1, 2017 at 4:21 pm

    Extremely amazing short blogs. I will bookmark this. I am reading your website while walking my dog. Thank you! You are more fun than bubble wrap.

  3. 3 tech adviser August 31, 2017 at 9:45 am

    Somehow you make time stop and fly at the same time. You a user on Instagram? I just randomly discovered your article. Thanks for writing this. I like your style.


  1. 1 Debugging Tips « Renaissance Trackback on October 5, 2006 at 11:01 am

Leave a reply to tech adviser Cancel reply




Pages

Thru Lens

View Karthikeyan S's profile on LinkedIn
Alltop, confirmation that we kick ass