CPSC 102 Debugging Z A IN R IZ V I A Little History Lesson - - PowerPoint PPT Presentation

cpsc 102 debugging
SMART_READER_LITE
LIVE PREVIEW

CPSC 102 Debugging Z A IN R IZ V I A Little History Lesson - - PowerPoint PPT Presentation

CPSC 102 Debugging Z A IN R IZ V I A Little History Lesson 1946 Page from Harvard Mark II computers log. Entry by Grace Hopper Moth fmew in the machine. A Little History Lesson It has been just so in all of my


slide-1
SLIDE 1

Z A IN R IZ V I

CPSC 102 Debugging

slide-2
SLIDE 2

A Little History Lesson

  • 1946
  • Page from Harvard Mark II

computer’s log.

  • Entry by Grace Hopper
  • Moth fmew in the machine.
slide-3
SLIDE 3

A Little History Lesson

“It has been just so in all of my

  • inventions. The fjrst step is an

intuition, and comes with a burst, then difgiculties arise — this thing gives out and [it is] then that "Bugs" — as such little faults and difgiculties are called — show themselves and months of intense watching, study and labor are requisite before commercial success or failure is certainly reached.” Thomas Edison Letter to Theodore Puskas (1878)

slide-4
SLIDE 4

A Little History Lesson

“... an analysing process must

equally have been performed in

  • rder to furnish the Analytical

Engine with the necessary

  • perative data; and that herein

may also lie a possible source of

  • error. Granted that the actual

mechanism is unerring in its processes, the cards may give it wrong orders.” Ada Lovelace

Ada Lovelace’s notes 1843 notes on the analytical engine

slide-5
SLIDE 5

Rubber Ducky Debugging

slide-6
SLIDE 6

Debugging Practices

Pair programming Reading the code Debugging tools

(gdb, jdb, pdb)

Code commenting Write tests Version Control

slide-7
SLIDE 7

Find! That! Bug!

slide-8
SLIDE 8

Find! That! Bug!

slide-9
SLIDE 9

Find! That! Bug!

slide-10
SLIDE 10

Find! That! Bug!

slide-11
SLIDE 11

Debugging Tools

pdb - The Python Debugger jdb – The Java Debugger gdb – Gnu Debugger