debugging - system software

VickyShan3 2,656 views 10 slides Apr 19, 2017
Slide 1
Slide 1 of 10
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10

About This Presentation

intro about debugging


Slide Content

SYSTEM SOFTWARE

DEBUGGING
 submitted by
 RAJESHWARAN.K (14CS136)

INTERACTIVE DEBUGGING
SYSTEMS
Debugging Functions and Capabilities
Debugging process
Program-Display capabilities
Relationship with Other Parts of the System
User-Interface Criteria

DEBUGGING
Debugging is a methodical process of finding and reducing the
number of bugs, or defects, in a computer program
An interactive debugging system provides programmers with
facilities that aid in testing and debugging of programs
Here we discuss
◦Introducing important functions
and capabilities of IDS
◦Relationship of IDS to other parts
of the system
◦The nature of the user interface
for IDS

DEBUGGING FUNCTIONS AND
CAPABILITIES
Debugging system should also provide functions such as
tracing and trace back
Trace back can show the path by which the current statement
in the program was reached.
It can also show which statements have modified a given
variable or parameter.
The statements are displayed rather than as hexadecimal
displacements

DEBUGGING PROCESS
Print debugging is the act of watching (live or recorded) trace
statements, or print statements, that indicate the flow of
execution of a process.
In computers, debugging is the process of locating and fixing
or bypassing bugs (errors) in computer program code or the
engineering of a hardware device.
Remote debugging is the process of debugging a program
running on a system different than the debugger.
Post-mortem debugging is the act of debugging the core dump
of process.

PROGRAM-DISPLAY
CAPABILITIES
A debugger should have good program-display capabilities.
Program being debugged should be displayed completely with
statement numbers.
The program may be displayed as originally written or with
macro expansion.
Keeping track of any changes made to the programs during the
debugging session.
Support for symbolically displaying or modifying the contents
of any of the variables and constants in the program.
Resume execution – after these changes

The context being used has many different effects on the
debugging interaction.
The statements are different depending on the language
Cobol - MOVE 6.5 TO X
Fortran - X = 6.5
C - X = 6.5
Examples of assignment statements
Similarly, the condition that X be unequal to Z may be
expressed as
Cobol - IF X NOT EQUAL TO Z
Fortran - IF ( X.NE.Z)
C - IF ( X <> Z)

Relationship with Other Parts of the
System
The important requirement for an interactive debugger is that it always be
available.
Must appear as part of the run-time environment and an integral part of the
system.
 When an error is discovered, immediate debugging must be possible.
The debugger must communicate and cooperate with other operating system
components such as interactive subsystems.

USER-INTERFACE CRITERIA
Debugging systems should be simple in its organization and familiar in its
language, closely reflect common user tasks.
The user interaction should make use of full-screen displays and windowing-
systems as much as possible.
With menus and full-screen editors, the user has far less information to enter
and remember.

THANK U
_/\_