Debugger

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 20

uL8uCCL8S

8?
kunAL u8l
l'll cover here
WhaL ls a bug?
WhaL ls debugger?
resenL uay Scenarlo
8reakpolnLs
uebugger rlnclples
varlous languages ln whlch debugglng ls done
uebugglng ln vlsual 8alc
AppllcaLlons
WhaL ls a bug?
A bug ls an error whlch appears aL Lhe Llme of execuLlon of a
program ln Lhe form of C8ASP
lL appears when Lhe Cu sklps an lnsLrucLlon due Lo some
amblgulLy ln Lhe program
WhaL ls a debugger?
A debugger ls a program meanL Lo debug oLher programs lL
follows Lhe program Lhrough execuLlon so you can waLch your
program execuLe sLep by sLep and vlew Lhe conLenLs of
memory lL can also be used Lo examlne core flles whlch are
produced by a program durlng a crash
Why Are 1hey used?
uebuggers are a necessary parL of Lhe englneerlng process
when deallng wlLh someLhlng as complex as sofLware
sysLems All lnLeracLlons cannoL be predlcLed speclflcaLlons
usually are noL wrlLLen Lo Lhe level of programmlng deLalls
and lmplemenLaLlon ls an lnherenLly dlfflculL and errorprone
process As sofLware geLs conLlnuously more complex
debuggers become more and more lmporLanL ln Lracklng
down problems
CRASH!!!! CRASH!!!!
resenL uay Scenarlo
uebugger rlnclples
1he Pelsenberg prlnclple
1ruLhful debugglng
ConLexL ls Lhe Lorch ln a dark grave
8reakpolnLs
A breakpolnL ls a cue Lo Lhe debugger LhaL you wanL
execuLlon Lo halL aL a speclflc polnL 1haL polnL can elLher be
aL a funcLlon call a speclflc llne number or aL a memory
address
1he debug perspecLlve
Source
Console
Execution
Stack
Variables,
breakpoints,
expressions
Pow Lo debug? Pow Lo debug?
AppllcaLlons Cf uebuggers
uebugglng corrupLlon bugs
8esource 1racklng
8everse LxecuLlon
1he LasL Word
uebugglng flnds appllcaLlons ln almosL all compuLer orlenLed flelds
1here are also very compllcaLed programs such as mulLlLhreaded
programs and lf any error occurs ln Lhose programs lL becomes very
dlfflculL Lo remove lL oLherwlse so debuggers are used
ConsLanL developmenL ls belng done Lo develop an efflclenL group of
debuggers whlch wlll Lake much less Llme ln debugglng
1here 8e 'n' no of debuggers ln Lhe markeL Lhese days buL lL ls on Lhe
dlscreLlon of Lhe developer Lo use Lhe apL one
1PAnk ?Cu

You might also like