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

3 Responses to “Debugging”

  1. 1 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.

  2. 2 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

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Thru Lens

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

%d bloggers like this: