O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Próximos SlideShares
Debugging
Debugging
Carregando em…3
×

Confira estes a seguir

1 de 13 Anúncio

Mais Conteúdo rRelacionado

Diapositivos para si (20)

Semelhante a Debugging (20)

Anúncio

Mais recentes (20)

Debugging

  1. 1. Presentation By : M.Imran Memon A Systematic Approach to Debugging
  2. 2. Debugging <ul><li>Debugging is a process of finding and reducing the number of bugs, or defects. </li></ul><ul><li>A Structured process Debugging if you are unfamiliar with the system you are fixing bugs less chances for you to fix any error. You must know how the system works, what components it uses and what technologies are involved in development, what is the process of development. </li></ul>
  3. 3. Simplified build and test flow
  4. 4. Opportunities how to find Bugs <ul><li>Debuggable source code </li></ul><ul><li>Instrumentation means writing additional code for observability and controllability, or to keep track, how often a function is called and by whom, of the software. </li></ul><ul><li>These instrumentations are sometimes enabled by providing macro definitions. </li></ul>
  5. 5. Continue… <ul><li>Compiler flags can be used to generate code and information needed for source code debugging. </li></ul><ul><li>Static Checkers Static checkers analyze the source code of the program without actually running the program. </li></ul><ul><li>Libraries Selected libraries or third party libraries may also contains bugs that results in to abnormal execution of system. </li></ul>
  6. 6. Continue… <ul><li>Linker options Linking is the process of building an executable file from object files and object libraries. </li></ul><ul><li>Code Instrumentation tools : Tools can be used to increase the accuracy upto the level of CPU cycles. </li></ul><ul><li>Test Cases are designed to find the bugs from black spots. </li></ul>
  7. 7. 13 Golden Rules of Debugging <ul><li>Understand the requirements </li></ul><ul><li>Make it fail </li></ul><ul><li>Simplify the test case </li></ul><ul><li>Read the right error message </li></ul><ul><li>Check the plug </li></ul><ul><li>Separate facts from interpretation </li></ul><ul><li>Divide and conquer </li></ul>
  8. 8. Continue… <ul><li>Match the tool to the bug </li></ul><ul><li>One change at a time </li></ul><ul><li>Keep an audit trail </li></ul><ul><li>Get a fresh view </li></ul><ul><li>If you didn't fix it, it ain’t fixed </li></ul><ul><li>Cover your bugfix with a regression test. </li></ul>
  9. 9. Build a Good Toolkit <ul><li>Your workshop </li></ul><ul><li>Running tests every day keeps the bugs at bay </li></ul><ul><li>Regression tests </li></ul><ul><li>Unit tests and system tests. </li></ul>
  10. 10. System Testing
  11. 11. Unit Testing
  12. 12. Meet the Bug Family <ul><li>The Common bug </li></ul><ul><li>Sporadic bug </li></ul><ul><li>Heisenbugs </li></ul><ul><li>The Race-ist </li></ul><ul><li>The Memory Outlaw </li></ul><ul><li>The Idealist </li></ul><ul><li>Bugs hiding behind bug </li></ul><ul><li>Secret bug </li></ul>
  13. 13. <ul><li>Thank you </li></ul>

×