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

PPT
PPSX
Debugging by induction
PPT
Debugging
PPTX
Nimbuzz advanced vs novice testers
ODP
The Art Of Debugging
PPTX
Testing in the Wild
PPT
Are Agile Projects Doomed to Half-Baked Design?
PPTX
How to think smarter about software development
Debugging by induction
Debugging
Nimbuzz advanced vs novice testers
The Art Of Debugging
Testing in the Wild
Are Agile Projects Doomed to Half-Baked Design?
How to think smarter about software development

What's hot (20)

PPTX
Pertanyaan dan jawaban (graham et.al 2011) part 1
PPTX
Exploratory testing
PPTX
Principles in software debugging
PPTX
PPTX
Testing &ampdebugging
PPT
Testing 2 - Thinking Like A Tester
PPTX
fundamentals of testing (Fundamental of testing what)
PPTX
First steps in testing analytics: Does test code quality matter?
PPT
Testing
PDF
Testing
PPTX
Chapter 1 Fundamental of testing (By Eva Normala)
PDF
[Paul Holland] Trends in Software Testing
PDF
Exploring Exploratory Testing
PPTX
Pertanyaan dan jawaban (graham et.al 2011)
PDF
Dev-resume
PPTX
TGT#9 - Lessons learned in software testing - Olga Żądło
PDF
Software Testing Principles and  Techniques
PPTX
Software Analytics: The Dark Side and the Test Side
Pertanyaan dan jawaban (graham et.al 2011) part 1
Exploratory testing
Principles in software debugging
Testing &ampdebugging
Testing 2 - Thinking Like A Tester
fundamentals of testing (Fundamental of testing what)
First steps in testing analytics: Does test code quality matter?
Testing
Testing
Chapter 1 Fundamental of testing (By Eva Normala)
[Paul Holland] Trends in Software Testing
Exploring Exploratory Testing
Pertanyaan dan jawaban (graham et.al 2011)
Dev-resume
TGT#9 - Lessons learned in software testing - Olga Żądło
Software Testing Principles and  Techniques
Software Analytics: The Dark Side and the Test Side
Ad

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

PDF
Debugging in Software Engineering SE Unit-4 Part-6.pdf
PPTX
The Art of Debugging.pptx
PPTX
Debugging
PPTX
Debugging (Part 2)
PPT
debugging (1).ppt
PPT
An important characteristic of a test suite that is computed by a dynamic ana...
PDF
Debugging.pdf
PPTX
Software Testing
PPT
PHP - Introduction to PHP Bugs - Debugging
PPT
Debugging
PPTX
Debugging
PPTX
Software_Testing_Overview.pptx
PPTX
Debugging- bajju.pptx
PDF
IRJET- Technique of Finding the Defect in Software Testing
PPTX
2.fundamental of testing
PPTX
Debugging
PPTX
SoftwareTesting.pptx
PPTX
Abhik-Satish-dagstuhl
PPTX
Presentation on debugging
DOCX
Istqb v.1.2
Debugging in Software Engineering SE Unit-4 Part-6.pdf
The Art of Debugging.pptx
Debugging
Debugging (Part 2)
debugging (1).ppt
An important characteristic of a test suite that is computed by a dynamic ana...
Debugging.pdf
Software Testing
PHP - Introduction to PHP Bugs - Debugging
Debugging
Debugging
Software_Testing_Overview.pptx
Debugging- bajju.pptx
IRJET- Technique of Finding the Defect in Software Testing
2.fundamental of testing
Debugging
SoftwareTesting.pptx
Abhik-Satish-dagstuhl
Presentation on debugging
Istqb v.1.2
Ad

More from Vaibhav Khanna (20)

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

Recently uploaded (20)

PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
medical staffing services at VALiNTRY
PDF
Nekopoi APK 2025 free lastest update
PDF
System and Network Administration Chapter 2
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
ai tools demonstartion for schools and inter college
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPT
Introduction Database Management System for Course Database
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Digital Systems & Binary Numbers (comprehensive )
Upgrade and Innovation Strategies for SAP ERP Customers
medical staffing services at VALiNTRY
Nekopoi APK 2025 free lastest update
System and Network Administration Chapter 2
PTS Company Brochure 2025 (1).pdf.......
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
ai tools demonstartion for schools and inter college
VVF-Customer-Presentation2025-Ver1.9.pptx
Navsoft: AI-Powered Business Solutions & Custom Software Development
wealthsignaloriginal-com-DS-text-... (1).pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
Softaken Excel to vCard Converter Software.pdf
Design an Analysis of Algorithms II-SECS-1021-03
Designing Intelligence for the Shop Floor.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Introduction Database Management System for Course Database
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Reimagine Home Health with the Power of Agentic AI​
Digital Systems & Binary Numbers (comprehensive )

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