| Test-Driven Development for Embedded C: Why Debug? | Publication: EDN Magazine
| | |
March 15, 2012 -- You all write code and then toil to make it work. You build it, and then you fix it. Testing is an afterthought; something you do after you write the code. You spend about half your time in the unpredictable activity of debugging. Debugging shows up on your schedule under the guise of test and integration. It is a source of risk and uncertainty. Fixing one bug might lead to another and, sometimes, to a cascade of other bugs.
One aspect of designing for manufacturability is determining why these bugs happen to you. The simple answer is this: You put them there. It's the way you work. When test follows development, it will find defects. You make mistakes when you develop; the tests' job is to find the defects. If you are any good at testing, you'll find bugs. Following development by test means you must find, fix, and manage a boatload of defects.
This procedure, debug-later programming, is currently the most popular way to program. Write the code; debug it later. Debug-later programming is risky. You make mistakes because you are human. You can be sure of neither when the bugs will appear nor how long it will take to find them.
James W. Grenning. (Grenning is with .)
This brief introduction has been excerpted from the original copyrighted article.
View the entire article on the EDN Magazine website.
| | Keywords: embedded system design, embedded systems, debug, debugging, EDA, EDA tools, electronic design automation, design for manufacturing, design-for-manufacturing, DFM, EDN Magazine, Renaissance Software Consulting
| | 602/38203 3/15/2012 1005 77 | |
|
|
|
|
| | 0.1523438 |
|
|
| Copyright 2002 - 2004 Tech Pro Communications, P.O. Box 1801, Merrimack, NH 03054 | |
|
| | |
|
|
Subscribe to SOCcentral's SOC Explorer Newsletter and receive news, article, whitepaper, and product updates bi-weekly.
|
|
|
Exec Viewpoint
Maximizing the Value of Your Internal IP
 Warren Savage CEO, IPextreme
|
|
Exec Viewpoint
Yes, Virginia, There Is a Stitch-and-Ship
 Dave Johnson VP of Sales Breker Verification
|
|
|
|
Barbara's Bytes
So, Just What Is ESL
 Barbara Tuck Senior Editor, SOCcentral
|
|
|
|
|
|
|
|
| Design Center |
| Whitepapers & App Notes |
|
|
|
|
|
| Live and Archived Webcasts |
|
|
|
|
|
| Newsletters |
|
|
|
|
|
|
About SOCcentral.com
Sponsorship/Advertising Information
|
|
|