King Rat (gkr) wrote,
King Rat
gkr

October 2002 I.E.E.E. Computer

Debug rules to live by, kiped from Bob Colwell:

  • Change one thing at a time.. If you fix the problem, you won't know which thing fixed it.
  • Don't ignore the unexpected.
  • Follow the bug trail. I tell my developers, You get one chance with the shotgun. After that, no more guessing. Follow it systematically.
  • Reduce complex phenomena to simple absolutes. Isolate the problem. Strip out anything that's not affecting the system, and then debug only what's left.
  • Keep accurate lab notes.
  • Debug is an immersion activity. Don't allow distractions. If you are interrupted, you'll likely have to start over.
  • Bugs almost never live alone.
  • Test your test equipment.
  • Know when you're stick, and call in the cavalry. Simply getting another pair of eyes on a problem often removes your blinders. My rule of thumb for developers is, don't spend more than a half hour if you are stuck. And there are those who are good at debugging. Be nice to them, so you can ask for their help later.

Not much else interesting this issue.

Subscribe

  • Last post

    I don't plan to delete my LJ (I paid for permanent status, dammit), but this will be the last post. I don't plan to read it anymore, either…

  • Unemployed

    Turns out my insurance is cut off at midnight tonight, not the end of the month. In a way, that's a good thing. Now I'll move my appointment…

  • Home from the cruise, off to Sunnyvale

    A week off, but tomorrow I head to the home office for a week there.

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 1 comment