Slide 1

Slide 1 text

THE ART OF DEBUGGING

Slide 2

Slide 2 text

WHAT IS A BUG??

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

NOT WORKING AS INTENDED

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

3 BUG TYPES

Slide 12

Slide 12 text

BUG TYPE 1 PROBLEMS YOU CAN SEE: OK

Slide 13

Slide 13 text

BUG TYPE 2 PROBLEMS YOU CANNOT SEE: HARD

Slide 14

Slide 14 text

BUG TYPE 3 PROBLEMS YOU DO NOT KNOW EXIST: IMPOSSIBLE

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

STEP 1:

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

STEP 0: HOW TO DEAL

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

TRUST

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

STEP 1: GET AS MUCH INFORMATION AS POSSIBLE

Slide 27

Slide 27 text

GET AS MUCH INFORMATION AS POSSIBLE Stack Trace

Slide 28

Slide 28 text

GET AS MUCH INFORMATION AS POSSIBLE Stack Trace Version of Android

Slide 29

Slide 29 text

GET AS MUCH INFORMATION AS POSSIBLE Stack Trace Version of Android Device Make & Model

Slide 30

Slide 30 text

GET AS MUCH INFORMATION AS POSSIBLE Stack Trace Version of Android Device Make & Model Steps to Reproduce

Slide 31

Slide 31 text

STEP 2: SEE IF YOU CAN REPRODUCE IT

Slide 32

Slide 32 text

STEP 3: GOOGLE FOR KEYWORDS / SEARCH STACKOVERFLOW

Slide 33

Slide 33 text

STEP 4: RE-READ YOUR CODE

Slide 34

Slide 34 text

STEP 5: GATHER MORE INFORMATION

Slide 35

Slide 35 text

CRASHLYTICS logException

Slide 36

Slide 36 text

SERVER SIDE LOGGING

Slide 37

Slide 37 text

EVENT GRAPHING

Slide 38

Slide 38 text

GOOGLE ANALYTICS EVENTS

Slide 39

Slide 39 text

DEBUGGING INTERLUDE

Slide 40

Slide 40 text

KEY THINGS TO REMEMBER:

Slide 41

Slide 41 text

KEY THINGS TO REMEMBER: > Concurrency: Are your classes thread safe?

Slide 42

Slide 42 text

KEY THINGS TO REMEMBER: > Network Conditions

Slide 43

Slide 43 text

KEY THINGS TO REMEMBER: > Android has Bugs

Slide 44

Slide 44 text

KEY THINGS TO REMEMBER: > But Samsung is Buggier

Slide 45

Slide 45 text

KEY THINGS TO REMEMBER: > Check Your Assumptions

Slide 46

Slide 46 text

KEY THINGS TO REMEMBER: > Check Your Assumptions (aka) Your Backend Dev May Be Lying (Unintentionally)

Slide 47

Slide 47 text

PREVENTING BUGS

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

WRITE A CHECKLIST

Slide 50

Slide 50 text

WRITE A CHECKLIST > if the network is not available > if the server has an error > if it returns correctly > if something else goes horribly wrong > if the user is unauthenticated

Slide 51

Slide 51 text

BETA TEST

Slide 52

Slide 52 text

MAKE THE TESTS AUTOMATIC

Slide 53

Slide 53 text

RUN THE AUTOMATIC TESTS

Slide 54

Slide 54 text

WHAT IS A BUG??

Slide 55

Slide 55 text

A BUG IS A FUTURE YOU DID NOT CONSIDER

Slide 56

Slide 56 text

CURATED ANDROID FAILS @VOLUMEDOWNPOWER

Slide 57

Slide 57 text

SEND ME YOUR BUG STORIES. @NIFTYNEI

Slide 58

Slide 58 text

No content