jin-mcguire
Uploaded by
8 SLIDES
226 VUES
80LIKES

Essential Debugging Strategies: Rules, Techniques, and Prevention Tips

DESCRIPTION

Debugging is a critical skill in engineering and software development. The first three rules to remember are: Location, Location, Location. Start by finding where the fault lies, isolating subsystems and factors to simplify the testing process. Common issues include incorrect wiring, broken connections, and faulty components. To prevent bugs, ensure good wiring practices, robust design, and well-specified interfaces. Document all findings and problems for future reference. Embrace a systematic approach to problem-solving, recognizing that errors are part of the process.

1 / 8

Download Presentation
Télécharger la présentation

Essential Debugging Strategies: Rules, Techniques, and Prevention Tips

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Debugging Michael Bruce-Lockhart

  2. Debugging • The first 3 rules of debugging are • 1. Location 2. Location 3. Location • Find where the fault is • Isolate subsystems • Isolate factors • Apply simplified test signals • Write special test code Debugging

  3. Example Fully integrated Feedback +5 Lots of wires Tracking A/D Converter Block Dagram Debugging

  4. What can go wrong? • Incorrect wiring • Broken connection • Loading • Bad Power • Bad Ground • Faulty chip • Incorrect design • Interface disagreement Debugging

  5. Prevention • Good wiring • Robust • Well-organized • Good power and ground • Subsystems easy to isolate & test • Chips easy to replace • Design • KISS • Remember what’s critical • Well specified interfaces • Loading Debugging

  6. Finding the problem • First objective is to localize the problem • Do cheap tests before expensive ones • check power with a scope • check grounds with an ohmmeter • check right at the pins • Substitution of parts • isolate before removing part • don’t damage the part in the removal • be careful not to blow out multiple parts • Anything can go wrong – even wires break Debugging

  7. Develop the right attitude • Problems will occur • Perfection is not possible • Treat a fault as an engineering problem • Tackle it systematically • Use your brain – no substitute for thinking • Use your knowledge • If it’s a tough one • Walk away from it & rethink it Debugging

  8. Finally • Document your problems • Log book • By the time you’re done you will know it thoroughly • You may forget the details a month later • It can break again Debugging

More Related
SlideServe
Audio
Live Player
Audio Wave
Play slide audio to activate visualizer