SlideShare a Scribd company logo
Software Engineering: 22
Errors and Debugging
Prof Neeraj Bhargava
Vaibhav Khanna
Department of Computer Science
School of Engineering and Systems Sciences
Maharshi Dayanand Saraswati University Ajmer
2
Debugging: A Diagnostic Process
3
The Debugging Process
4
Debugging Effort
time required
to diagnose the
symptom and
determine the
cause
time required
to correct the error
and conduct
regression tests
5
Symptoms & Causes
symptom
cause
symptom and cause may be
geographically separated
symptom may disappear when
another problem is fixed
cause may be due to a
combination of non-errors
cause may be due to a system
or compiler error
cause may be due to
assumptions that everyone
believes
symptom may be intermittent
6
Consequences of Bugs
damage
mild
annoying
disturbing
serious
extreme
catastrophic
infectious
Bug Type
Bug Categories:
function-related bugs,system-related bugs, data bugs, coding bugs,
design bugs, documentation bugs, standardsviolations, etc.
7
Debugging Techniques
brute force / testing
backtracking
induction
deduction
8
Correcting the Error
 Is the cause of the bug reproduced in another part of the program? In many
situations, a program defect is caused by an erroneous pattern of logic that
may be reproduced elsewhere.
 What "next bug" might be introduced by the fix I'm about to make? Before
the correction is made, the source code (or, better, the design) should be
evaluated to assess coupling of logic and data structures.
 What could we have done to prevent this bug in the first place? This
question is the first step toward establishing a statistical software quality
assurance approach. If you correct the process as well as the product, the
bug will be removed from the current program and may be eliminated from
all future programs.
9
Final Thoughts
• Think -- before you act to correct
• Use tools to gain additional insight
• If you’re at an impasse, get help from
someone else
• Once you correct the bug, use regression
testing to uncover any side effects
Assignment
• What do you understand by debugging?
• What is the difference between Testing and
Debugging
• Thank You

More Related Content

What's hot (20)

PPTX
Pertanyaan dan jawaban (graham et.al 2011) part 1
ikhwana luthfi
 
PPTX
Exploratory testing
ISsoft
 
PPTX
Principles in software debugging
Pipat Methavanitpong
 
PPTX
Debugging
Jonathan Holloway
 
PPTX
Testing &ampdebugging
rajshreemuthiah
 
PPT
Testing 2 - Thinking Like A Tester
ArleneAndrews2
 
PPTX
fundamentals of testing (Fundamental of testing what)
diana fitri, S.Kom
 
PPTX
First steps in testing analytics: Does test code quality matter?
Andy Zaidman
 
PPT
Testing
nazeer pasha
 
PDF
Testing
Bas Bossink
 
PPTX
Chapter 1 Fundamental of testing (By Eva Normala)
EvaNormala
 
PDF
[Paul Holland] Trends in Software Testing
Ho Chi Minh City Software Testing Club
 
PDF
Exploring Exploratory Testing
nazeer pasha
 
PPTX
Pertanyaan dan jawaban (graham et.al 2011)
nur fitrianti
 
PDF
Dev-resume
Debadatta dash
 
PPTX
TGT#9 - Lessons learned in software testing - Olga Żądło
Trójmiejska Grupa Testerska
 
PDF
Software Testing Principles and  Techniques
suresh ramanujam
 
PPTX
Software Analytics: The Dark Side and the Test Side
Andy Zaidman
 
Pertanyaan dan jawaban (graham et.al 2011) part 1
ikhwana luthfi
 
Exploratory testing
ISsoft
 
Principles in software debugging
Pipat Methavanitpong
 
Testing &ampdebugging
rajshreemuthiah
 
Testing 2 - Thinking Like A Tester
ArleneAndrews2
 
fundamentals of testing (Fundamental of testing what)
diana fitri, S.Kom
 
First steps in testing analytics: Does test code quality matter?
Andy Zaidman
 
Testing
nazeer pasha
 
Testing
Bas Bossink
 
Chapter 1 Fundamental of testing (By Eva Normala)
EvaNormala
 
[Paul Holland] Trends in Software Testing
Ho Chi Minh City Software Testing Club
 
Exploring Exploratory Testing
nazeer pasha
 
Pertanyaan dan jawaban (graham et.al 2011)
nur fitrianti
 
Dev-resume
Debadatta dash
 
TGT#9 - Lessons learned in software testing - Olga Żądło
Trójmiejska Grupa Testerska
 
Software Testing Principles and  Techniques
suresh ramanujam
 
Software Analytics: The Dark Side and the Test Side
Andy Zaidman
 

Similar to Software engineering 22 error detection and debugging (20)

PPTX
The Art of Debugging.pptx
KarthigaiSelviS3
 
DOCX
A Novel Approach to Improve Software Defect Prediction Accuracy Using Machine...
Shakas Technologies
 
PPTX
STM-UNIT-1.pptx
nischal55
 
PDF
Stm unit1
Chaitanya Kn
 
PDF
Debugging in Software Engineering SE Unit-4 Part-6.pdf
iron57441
 
PPT
Unit 1, PART 1 Software testing methodologies
RevathiPemmaraju1
 
PDF
EFFECTIVE TEST CASE DESING: A REVIEW
Journal For Research
 
PPTX
Software testing ppt
Poonkodi Jayakumar
 
PPTX
Software testing
Aman Adhikari
 
PDF
Complete Manual Testing Notes which tells about the process of testing
amargvn
 
PDF
Defect effort prediction models in software
IAEME Publication
 
PDF
Feb 2013Lesson 38 Software Acquisition Development
Barb Tillich
 
PPTX
Software Testing
Prof .Pragati Khade
 
PPT
Object oriented sad 6
Bisrat Girma
 
PPTX
basic software testing principles and obectives.pptx
KomalSinghGill
 
PDF
Inrotduction of Testing
Palash Ghosh
 
PDF
Testing Slides 1 (Testing Intro+Static Testing).pdf
MuhammadShoaibHussai2
 
PDF
A Combined Approach of Software Metrics and Software Fault Analysis to Estima...
IOSR Journals
 
DOC
Testing
poojadatt
 
PPTX
Programming Fundamentals lecture 3
REHAN IJAZ
 
The Art of Debugging.pptx
KarthigaiSelviS3
 
A Novel Approach to Improve Software Defect Prediction Accuracy Using Machine...
Shakas Technologies
 
STM-UNIT-1.pptx
nischal55
 
Stm unit1
Chaitanya Kn
 
Debugging in Software Engineering SE Unit-4 Part-6.pdf
iron57441
 
Unit 1, PART 1 Software testing methodologies
RevathiPemmaraju1
 
EFFECTIVE TEST CASE DESING: A REVIEW
Journal For Research
 
Software testing ppt
Poonkodi Jayakumar
 
Software testing
Aman Adhikari
 
Complete Manual Testing Notes which tells about the process of testing
amargvn
 
Defect effort prediction models in software
IAEME Publication
 
Feb 2013Lesson 38 Software Acquisition Development
Barb Tillich
 
Software Testing
Prof .Pragati Khade
 
Object oriented sad 6
Bisrat Girma
 
basic software testing principles and obectives.pptx
KomalSinghGill
 
Inrotduction of Testing
Palash Ghosh
 
Testing Slides 1 (Testing Intro+Static Testing).pdf
MuhammadShoaibHussai2
 
A Combined Approach of Software Metrics and Software Fault Analysis to Estima...
IOSR Journals
 
Testing
poojadatt
 
Programming Fundamentals lecture 3
REHAN IJAZ
 
Ad

More from Vaibhav Khanna (20)

PPTX
Information and network security 47 authentication applications
Vaibhav Khanna
 
PPTX
Information and network security 46 digital signature algorithm
Vaibhav Khanna
 
PPTX
Information and network security 45 digital signature standard
Vaibhav Khanna
 
PPTX
Information and network security 44 direct digital signatures
Vaibhav Khanna
 
PPTX
Information and network security 43 digital signatures
Vaibhav Khanna
 
PPTX
Information and network security 42 security of message authentication code
Vaibhav Khanna
 
PPTX
Information and network security 41 message authentication code
Vaibhav Khanna
 
PPTX
Information and network security 40 sha3 secure hash algorithm
Vaibhav Khanna
 
PPTX
Information and network security 39 secure hash algorithm
Vaibhav Khanna
 
PPTX
Information and network security 38 birthday attacks and security of hash fun...
Vaibhav Khanna
 
PPTX
Information and network security 37 hash functions and message authentication
Vaibhav Khanna
 
PPTX
Information and network security 35 the chinese remainder theorem
Vaibhav Khanna
 
PPTX
Information and network security 34 primality
Vaibhav Khanna
 
PPTX
Information and network security 33 rsa algorithm
Vaibhav Khanna
 
PPTX
Information and network security 32 principles of public key cryptosystems
Vaibhav Khanna
 
PPTX
Information and network security 31 public key cryptography
Vaibhav Khanna
 
PPTX
Information and network security 30 random numbers
Vaibhav Khanna
 
PPTX
Information and network security 29 international data encryption algorithm
Vaibhav Khanna
 
PPTX
Information and network security 28 blowfish
Vaibhav Khanna
 
PPTX
Information and network security 27 triple des
Vaibhav Khanna
 
Information and network security 47 authentication applications
Vaibhav Khanna
 
Information and network security 46 digital signature algorithm
Vaibhav Khanna
 
Information and network security 45 digital signature standard
Vaibhav Khanna
 
Information and network security 44 direct digital signatures
Vaibhav Khanna
 
Information and network security 43 digital signatures
Vaibhav Khanna
 
Information and network security 42 security of message authentication code
Vaibhav Khanna
 
Information and network security 41 message authentication code
Vaibhav Khanna
 
Information and network security 40 sha3 secure hash algorithm
Vaibhav Khanna
 
Information and network security 39 secure hash algorithm
Vaibhav Khanna
 
Information and network security 38 birthday attacks and security of hash fun...
Vaibhav Khanna
 
Information and network security 37 hash functions and message authentication
Vaibhav Khanna
 
Information and network security 35 the chinese remainder theorem
Vaibhav Khanna
 
Information and network security 34 primality
Vaibhav Khanna
 
Information and network security 33 rsa algorithm
Vaibhav Khanna
 
Information and network security 32 principles of public key cryptosystems
Vaibhav Khanna
 
Information and network security 31 public key cryptography
Vaibhav Khanna
 
Information and network security 30 random numbers
Vaibhav Khanna
 
Information and network security 29 international data encryption algorithm
Vaibhav Khanna
 
Information and network security 28 blowfish
Vaibhav Khanna
 
Information and network security 27 triple des
Vaibhav Khanna
 
Ad

Recently uploaded (20)

PDF
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
 
PPTX
Introduction to web development | MERN Stack
JosephLiyon
 
DOCX
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
 
PPTX
For my supp to finally picking supp that work
necas19388
 
PPTX
Android Notifications-A Guide to User-Facing Alerts in Android .pptx
Nabin Dhakal
 
PPTX
IObit Driver Booster Pro 12.4-12.5 license keys 2025-2026
chaudhryakashoo065
 
PPTX
Avast Premium Security crack 25.5.6162 + License Key 2025
HyperPc soft
 
PPTX
Agentforce – TDX 2025 Hackathon Achievement
GetOnCRM Solutions
 
PPTX
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
dheeodoo
 
PDF
Building scalbale cloud native apps with .NET 8
GillesMathieu10
 
PPTX
Threat Modeling a Batch Job Framework - Teri Radichel - AWS re:Inforce 2025
2nd Sight Lab
 
PDF
Best Software Development at Best Prices
softechies7
 
PDF
Why Edge Computing Matters in Mobile Application Tech.pdf
IMG Global Infotech
 
PDF
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
 
PDF
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
PDF
Writing Maintainable Playwright Tests with Ease
Shubham Joshi
 
PPTX
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
 
PDF
capitulando la keynote de GrafanaCON 2025 - Madrid
Imma Valls Bernaus
 
PDF
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
Lionel Briand
 
PPTX
arctitecture application system design os dsa
za241967
 
Humans vs AI Call Agents - Qcall.ai's Special Report
Udit Goenka
 
Introduction to web development | MERN Stack
JosephLiyon
 
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
 
For my supp to finally picking supp that work
necas19388
 
Android Notifications-A Guide to User-Facing Alerts in Android .pptx
Nabin Dhakal
 
IObit Driver Booster Pro 12.4-12.5 license keys 2025-2026
chaudhryakashoo065
 
Avast Premium Security crack 25.5.6162 + License Key 2025
HyperPc soft
 
Agentforce – TDX 2025 Hackathon Achievement
GetOnCRM Solutions
 
ERP Systems in the UAE: Driving Business Transformation with Smart Solutions
dheeodoo
 
Building scalbale cloud native apps with .NET 8
GillesMathieu10
 
Threat Modeling a Batch Job Framework - Teri Radichel - AWS re:Inforce 2025
2nd Sight Lab
 
Best Software Development at Best Prices
softechies7
 
Why Edge Computing Matters in Mobile Application Tech.pdf
IMG Global Infotech
 
From Data Preparation to Inference: How Alluxio Speeds Up AI
Alluxio, Inc.
 
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
 
Writing Maintainable Playwright Tests with Ease
Shubham Joshi
 
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
 
capitulando la keynote de GrafanaCON 2025 - Madrid
Imma Valls Bernaus
 
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
Lionel Briand
 
arctitecture application system design os dsa
za241967
 

Software engineering 22 error detection and debugging

  • 1. Software Engineering: 22 Errors and Debugging Prof Neeraj Bhargava Vaibhav Khanna Department of Computer Science School of Engineering and Systems Sciences Maharshi Dayanand Saraswati University Ajmer
  • 4. 4 Debugging Effort time required to diagnose the symptom and determine the cause time required to correct the error and conduct regression tests
  • 5. 5 Symptoms & Causes symptom cause symptom and cause may be geographically separated symptom may disappear when another problem is fixed cause may be due to a combination of non-errors cause may be due to a system or compiler error cause may be due to assumptions that everyone believes symptom may be intermittent
  • 6. 6 Consequences of Bugs damage mild annoying disturbing serious extreme catastrophic infectious Bug Type Bug Categories: function-related bugs,system-related bugs, data bugs, coding bugs, design bugs, documentation bugs, standardsviolations, etc.
  • 7. 7 Debugging Techniques brute force / testing backtracking induction deduction
  • 8. 8 Correcting the Error  Is the cause of the bug reproduced in another part of the program? In many situations, a program defect is caused by an erroneous pattern of logic that may be reproduced elsewhere.  What "next bug" might be introduced by the fix I'm about to make? Before the correction is made, the source code (or, better, the design) should be evaluated to assess coupling of logic and data structures.  What could we have done to prevent this bug in the first place? This question is the first step toward establishing a statistical software quality assurance approach. If you correct the process as well as the product, the bug will be removed from the current program and may be eliminated from all future programs.
  • 9. 9 Final Thoughts • Think -- before you act to correct • Use tools to gain additional insight • If you’re at an impasse, get help from someone else • Once you correct the bug, use regression testing to uncover any side effects
  • 10. Assignment • What do you understand by debugging? • What is the difference between Testing and Debugging • Thank You