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
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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




Pages

Thru Lens

I’ve been forty years discovering that the queen of all colors is black. – Henri Mattise

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

%d bloggers like this: