0% found this document useful (0 votes)
144 views9 pages

328 33 Powerpoint-Slides 18-Debugging Chapter-18

Uploaded by

SHUBHAM
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
144 views9 pages

328 33 Powerpoint-Slides 18-Debugging Chapter-18

Uploaded by

SHUBHAM
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 9

Software Testing

Naresh Chauhan, Assistant Professor in the


Department of Computer Engineering at the
YMCA University of Science and Technology,
Faridabad

1
© Oxford University Press 2011. All rights reserved.
Chapter 18
Debugging

2
© Oxford University Press 2011. All rights reserved.
Chapter 18

Debugging

Objectives

• Debugging is not testing and testing is not debugging.


• Debugging is an art more than technique.
• Steps of a general debugging process
• Debugging with Memory Dump
• Debugging with Watch Points
• Backtracking method
• Debugging guidelines
• Various types of Debuggers

3
© Oxford University Press 2011. All rights reserved.
EvolutionDebugging
of Software
Process Testing

4
© Oxford University Press 2011. All rights reserved.
Evolution of Software
Debugging Techniques Testing

Debugging with Memory Dump


• A printout of all registers and relevant memory locations is
obtained and studied. The storage locations are in octal or
hexadecimal format. The relevant data of the program is
observed through these memory locations and registers for
any bug in the program.

5
© Oxford University Press 2011. All rights reserved.
Debugging with Watch Points

1. Output Statements

2. Breakpoint Execution
• Unconditional Breakpoint
• Conditional Breakpoint
• Temporary Breakpoint
• Internal Breakpoint

3. Single Stepping

6
© Oxford University Press 2011. All rights reserved.
BackTracking

7
© Oxford University Press 2011. All rights reserved.
Debugging guidelines

Fresh thinking leads to good debugging

Don’t isolate the bug from your colleagues

Don’t attempt the code modifications in first attempt

Additional test cases are must if you don’t get the symptom
or clues to solve the problem

Regression testing is a must after debugging

Design should be referred before fixing the error

8
© Oxford University Press 2011. All rights reserved.
Debuggers

Kernel Debugger

Basic machine level debugger

In-Circuit Emulator Interpretive programming environment

Debugger

9
© Oxford University Press 2011. All rights reserved.

You might also like