Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
The Dark Art of Debugging
Search
eojthebrave
May 22, 2015
Technology
0
510
The Dark Art of Debugging
A talk about developing the soft-skills required to be a good software debugger.
eojthebrave
May 22, 2015
Tweet
Share
More Decks by eojthebrave
See All by eojthebrave
Altering, Extending, and Enhancing, Drupal 8
eojthebrave
4
960
An Overview of the Drupal 8 Plugin System
eojthebrave
2
380
A Developers Primer to Managing Developers
eojthebrave
0
390
Building Web Services with Drupal 7
eojthebrave
0
390
We Need to Teach People Drupal 8. Now.
eojthebrave
0
280
Thoughts About Presenting
eojthebrave
0
300
Views! Huh? What is it good for?
eojthebrave
1
210
The Incredible Form API
eojthebrave
2
360
Recurring Billing is hard, is hard, is hard.
eojthebrave
2
520
Other Decks in Technology
See All in Technology
Connect × Server-Side Kotlinで実現する!スキーマ駆動開発と品質改善の実践
sansantech
PRO
1
220
JAWS-UG 横浜支部 #76 AWS re:Invent 2024 宇宙一早い Recap LT3Amazon EKS Auto Modeと遊び(パーティ)の話
tjotjo
0
190
Jetpack Composeで始めるServer Cache State
ogaclejapan
2
150
AWS re:Invent 2024 re:Cap CloudFront編
yoshimi0227
0
320
KubeCon NA 2024 Recap: Managing and Distributing AI Models Using OCI Standards and Harbor / Kubernetes Meetup Tokyo #68
pfn
PRO
0
210
How to be an AWS Community Builder | 君もAWS Community Builderになろう!〜2024 冬 CB募集直前対策編?!〜
coosuke
PRO
2
2.6k
re:Invent 2024 Innovation Talks(NET201)で語られた大切なこと
shotashiratori
0
210
Oracle Database Release and Support Timelines 2024/12/11
wmo6hash
0
290
大幅アップデートされたRagas v0.2をキャッチアップ
os1ma
2
380
re:Invent2024のIaC周りのアップデート&セッションの共有/around-re-invent-2024-iac-updates
tomoki10
0
990
WernerVogelsのKeynoteで語られた6つの教訓とOps
hatahata021
2
280
コンテナセキュリティのためのLandlock入門
nullpo_head
2
300
Featured
See All Featured
The Invisible Side of Design
smashingmag
298
50k
Facilitating Awesome Meetings
lara
50
6.1k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
95
17k
Making the Leap to Tech Lead
cromwellryan
133
9k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
How to Ace a Technical Interview
jacobian
276
23k
Building Adaptive Systems
keathley
38
2.3k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Unsuck your backbone
ammeep
669
57k
Transcript
The Dark Art of Debugging php[tek] 2015 - Chicago Joe
(@eojthebrave) Shindelar https://joind.in/event/view /3183
Hi. I’m Joe Shindelar @eojthebrave
5 Minutes - GO! + Bugs are inevitable + Debugging
is a science + Replicate, Isolate, Understand, Fix + Practice …
So … where do bugs come from?
Software: Is a set of written instructions provided for a
computer to interpret and use to accomplish a task.
Software: Is a set of written instructions provided for a
computer to interpret and use to accomplish a task. Bugs: Are the defects that arise when those instructions are incorrectly translated.
“There’s a space between zero and one, between the way
the machine counts and thinks and the way we count and think. When you search for explanations for software’s bugs and delays and stubborn resistance to human desires, that space is where you’ll find them.” - Scott Rosenberg -Dreaming In Code
The ONLY way to be a zero bug programmer is
to not write any code.
Debugging is a practical application of both technical skills and
analytical abilities
This presentation is not about tools. But tools play an
important roll in debugging. Learn your tools. Use your tools.
+ Replicate + Isolate + Understand + Fix
Ready? Fire! Aim. Give yourself 10 minutes to jump in
and dirty- debug. But STOP before you go crazy.
STEP ONE Replicate the problem
It is a capital mistake to theorize before one has
data. Insensibly one begins to twist facts to suit theories, instead of theories to suit facts. - Sherlock Holmes Quote -A Scandal in Bohemia
Replicate + Keep a log
Replicate + Keep a log + Get it to fail
Replicate + Keep a log + Get it to fail
+ Lay a trap
Replicate + Keep a log + Get it to fail
+ Lay a trap + Stimulate. Don’t simulate
Replicate + Keep a log + Get it to fail
+ Lay a trap + Stimulate. Don’t simulate + Automate the failure
Goal: Generate a list of steps
STEP TWO Isolate the problem
There is nothing more deceptive than an obvious fact. -
Sherlock Holmes Quote - The Bascombe Valley Mystery
Isolate + Avoid easter egging
Isolate + Avoid easter egging + Check the plug
Isolate + Avoid easter egging + Check the plug +
Divide & conquer
Isolate + Avoid easter egging + Check the plug +
Divide & conquer + Change one thing at time
Isolate + Avoid easter egging + Check the plug +
Divide & conquer + Change one thing at time + Stop thinking and look
Goal: Explain what is causing the problem to occur. Include
details about application state, time, and inputs.
STEP THREE Understand the problem
Nothing clears up a case so much as stating it
to another person. - Sherlock Holmes Quote - Silver Blaze
Understand + Brain games
Avoid confirmation bias Beware the availability heuristic
Understand + Brain games + Don’t assume anything. Ever
Understand + Brain games + Don’t assume anything. Ever +
Practice tempered humility
Understand + Brain games + Don’t assume anything. Ever +
Practice tempered humility + Read the manual
“Why bother, I can look it up in the Phone
book.” - Einstein
Understand + Brain games + Don’t assume anything. Ever +
Practice tempered humility + Read the manual + Ask for help
Goal: Explain the root cause, and how your proposed fix
will solve the problem.
STEP FOUR Fix the problem
Eliminate all other factors, and the one which remains must
be the truth. - Sherlock Holmes Quote - The Sign of Four
Fix + Don’t stop until you’re done
Fix + Don’t stop until you’re done + Establish causality
Fix + Don’t stop until you’re done + Establish causality
+ Test your fix
Goal: Close the ticket!
+ Replicate + Isolate + Understand + Fix
“The greats weren't great because at birth they could paint.
The greats were great cause they paint a lot.” - Macklemore
The Dark Art of Debugging php[tek] 2015 - Chicago Joe
(@eojthebrave) Shindelar https://joind.in/event/view /3183