SlideShare ist ein Scribd-Unternehmen logo
1 von 8
Downloaden Sie, um offline zu lesen
THUNDER THURSDAY
INSIGHTS – 8
DEBUG EFFICIENTLY AND
EFFECTIVELY!
1
Even if you have fixed something, it is
done without having reproduced the
original bug and having no idea what
you have actually done. So, always find
the exact steps to reproduce the bug. If
you can’t reproduce it, find someone
who can!
Always Reproduce the Bug Before You Start
Changing Code
Never just see the description of a problem, immediately make
some random assumptions, proceed to make changes in the code
cause soon you will find it’s not fixed.
2 Understand Stack Traces
99% of time the stack trace will come
from a bad assumption in your OWN
code. Now it may not be that exact line
which has the bug, but you’ll need to
work backwards up through the code to
find where a bad argument was perhaps
passed in.
Therefore:
Always wrap exceptions thrown to you!
Not every bug will have a stack trace, but most of them
do. The key to remember is that the root cause, the
filthy culprit that broke your perfect day, is usually
wrapped up several layers deep.
So work from the bottom of the scary long stack trace upwards to find the
root cause!
3 Know Your Error Codes
404 - You might have the wrong url in your app
401 - Your credentials are likely wrong
418 - You’re talking to a teapot!
(seriously https://tools.ietf.org/html/rfc2324)
429 - You’re making too many requests
Given how fundamental HTTP is to pretty much every
app these days, knowing what the HTTP error code
means can be a huge help in diagnosing bugs!
If you get an HTTP error code, always Google it to make sure you
understand it. Again, it’ll save you a lot of time! The same goes for
Database drivers and other protocols. If you see an error code,
Google it with the name of the database and look for the official
docs.
4 Google! Bing! Duck! Duck! Go!
Whatever your search engine of choice is, you're sure to find a
helpful answer somewhere in the internet. Just gather up as
much information as possible before you hit "search" in the
search engine.
5 Pair Program Your Way Out of It
Bring in a colleague, a friend (or a
CodeMentor) and talk them through it.
Show them the bug and the code, tell
them everything that you’ve tried and
explain to them what you think the
problem is. You would be shocked to
find out how often just the simple fact
that you’re talking it through and having
If you find yourself spending more than 30 minutes
hacking away and not making any progress, stop
right there!
to explain it to someone else can suddenly help you see what the
issue really is. Other times, it might actually be a complex issue (like
a race condition) and having a second set of eyes can help pick up
edge cases and scenario’s you have not even considered.
6 Celebrate Your Fix!
Whether you turned a test
from red to green or closed
out a ticket on your queue,
give yourself a solid high-
five. You've just saved the
day and deserve all the
credit coming your way on
this one.
DEBUG IT!

Weitere Àhnliche Inhalte

Ähnlich wie EduSparkz Thunder Thursday Debugging Code

10 tips to save you time and frustration while programming
10 tips to save you time and frustration while programming10 tips to save you time and frustration while programming
10 tips to save you time and frustration while programmingHugo Shi
 
Scottish Ruby Conference 2014
Scottish Ruby Conference  2014Scottish Ruby Conference  2014
Scottish Ruby Conference 2014michaelag1971
 
Software engineering 101 - The basics you should hear about at least once
Software engineering 101 - The basics you should hear about at least onceSoftware engineering 101 - The basics you should hear about at least once
Software engineering 101 - The basics you should hear about at least onceAlexey (Mr_Mig) Migutsky
 
10 Reasons Why You Fix Bugs As Soon As You Find Them
10 Reasons Why You Fix Bugs As Soon As You Find Them10 Reasons Why You Fix Bugs As Soon As You Find Them
10 Reasons Why You Fix Bugs As Soon As You Find ThemRosie Sherry
 
30% faster coder on-boarding when you have a code cookbook
30% faster coder on-boarding when you have a code cookbook30% faster coder on-boarding when you have a code cookbook
30% faster coder on-boarding when you have a code cookbookGabriel Paunescu đŸ€–
 
Introducing XP
Introducing XPIntroducing XP
Introducing XPFabio Bertone
 
5.1 12 Rules to Learn to Code eBook [Updated 26.11.18].pdf.pdf
5.1 12 Rules to Learn to Code eBook [Updated 26.11.18].pdf.pdf5.1 12 Rules to Learn to Code eBook [Updated 26.11.18].pdf.pdf
5.1 12 Rules to Learn to Code eBook [Updated 26.11.18].pdf.pdfBdBangladesh
 
Unit Test Lab - Why Write Unit Tests?
Unit Test Lab - Why Write Unit Tests?Unit Test Lab - Why Write Unit Tests?
Unit Test Lab - Why Write Unit Tests?Danny van Kasteel
 
You shouldneverdo
You shouldneverdoYou shouldneverdo
You shouldneverdodaniil3
 
Introduction toprogramming
Introduction toprogrammingIntroduction toprogramming
Introduction toprogrammingSahar Salah ElDeen
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programmingAndre Leal
 
Software Debugging for High-altitude Balloons
Software Debugging for High-altitude BalloonsSoftware Debugging for High-altitude Balloons
Software Debugging for High-altitude Balloonsjgrahamc
 
11 rules for programmer should live by
11 rules for programmer should live by11 rules for programmer should live by
11 rules for programmer should live byYe Win
 
Cinci ug-january2011-anti-patterns
Cinci ug-january2011-anti-patternsCinci ug-january2011-anti-patterns
Cinci ug-january2011-anti-patternsSteven Smith
 
Computer basics from the techs
Computer basics from the techsComputer basics from the techs
Computer basics from the techsKaren Brooks
 
Lessons Learned About Software Development
Lessons Learned About Software DevelopmentLessons Learned About Software Development
Lessons Learned About Software DevelopmentJeffrey Ryan Thalhammer
 

Ähnlich wie EduSparkz Thunder Thursday Debugging Code (20)

10 tips to save you time and frustration while programming
10 tips to save you time and frustration while programming10 tips to save you time and frustration while programming
10 tips to save you time and frustration while programming
 
Scottish Ruby Conference 2014
Scottish Ruby Conference  2014Scottish Ruby Conference  2014
Scottish Ruby Conference 2014
 
Software engineering 101 - The basics you should hear about at least once
Software engineering 101 - The basics you should hear about at least onceSoftware engineering 101 - The basics you should hear about at least once
Software engineering 101 - The basics you should hear about at least once
 
10 Reasons Why You Fix Bugs As Soon As You Find Them
10 Reasons Why You Fix Bugs As Soon As You Find Them10 Reasons Why You Fix Bugs As Soon As You Find Them
10 Reasons Why You Fix Bugs As Soon As You Find Them
 
Debugging
DebuggingDebugging
Debugging
 
30% faster coder on-boarding when you have a code cookbook
30% faster coder on-boarding when you have a code cookbook30% faster coder on-boarding when you have a code cookbook
30% faster coder on-boarding when you have a code cookbook
 
Introducing XP
Introducing XPIntroducing XP
Introducing XP
 
5.1 12 Rules to Learn to Code eBook [Updated 26.11.18].pdf.pdf
5.1 12 Rules to Learn to Code eBook [Updated 26.11.18].pdf.pdf5.1 12 Rules to Learn to Code eBook [Updated 26.11.18].pdf.pdf
5.1 12 Rules to Learn to Code eBook [Updated 26.11.18].pdf.pdf
 
Unit Test Lab - Why Write Unit Tests?
Unit Test Lab - Why Write Unit Tests?Unit Test Lab - Why Write Unit Tests?
Unit Test Lab - Why Write Unit Tests?
 
You shouldneverdo
You shouldneverdoYou shouldneverdo
You shouldneverdo
 
Introduction toprogramming
Introduction toprogrammingIntroduction toprogramming
Introduction toprogramming
 
Introduction to programming
Introduction to programmingIntroduction to programming
Introduction to programming
 
Software Debugging for High-altitude Balloons
Software Debugging for High-altitude BalloonsSoftware Debugging for High-altitude Balloons
Software Debugging for High-altitude Balloons
 
11 rules for programmer should live by
11 rules for programmer should live by11 rules for programmer should live by
11 rules for programmer should live by
 
Cinci ug-january2011-anti-patterns
Cinci ug-january2011-anti-patternsCinci ug-january2011-anti-patterns
Cinci ug-january2011-anti-patterns
 
Debugging
DebuggingDebugging
Debugging
 
TxJS 2011
TxJS 2011TxJS 2011
TxJS 2011
 
Win#23 it
Win#23 itWin#23 it
Win#23 it
 
Computer basics from the techs
Computer basics from the techsComputer basics from the techs
Computer basics from the techs
 
Lessons Learned About Software Development
Lessons Learned About Software DevelopmentLessons Learned About Software Development
Lessons Learned About Software Development
 

Mehr von Satish AG

Terrific Thursday Visualization 101
Terrific Thursday Visualization 101Terrific Thursday Visualization 101
Terrific Thursday Visualization 101Satish AG
 
EduSparkz Thunder Thursday Concentrate Better
EduSparkz Thunder Thursday Concentrate BetterEduSparkz Thunder Thursday Concentrate Better
EduSparkz Thunder Thursday Concentrate BetterSatish AG
 
Edusparkz Thunder Thursday Googlepower
Edusparkz Thunder Thursday GooglepowerEdusparkz Thunder Thursday Googlepower
Edusparkz Thunder Thursday GooglepowerSatish AG
 
EduSparkz Thunder Thursday Email Etiquette
EduSparkz Thunder Thursday Email EtiquetteEduSparkz Thunder Thursday Email Etiquette
EduSparkz Thunder Thursday Email EtiquetteSatish AG
 
EduSparkz thunder thursday linkedin
EduSparkz thunder thursday linkedinEduSparkz thunder thursday linkedin
EduSparkz thunder thursday linkedinSatish AG
 
EduSparkz Thunder Thursday: Insights on Photoshop
EduSparkz Thunder Thursday: Insights on PhotoshopEduSparkz Thunder Thursday: Insights on Photoshop
EduSparkz Thunder Thursday: Insights on PhotoshopSatish AG
 
Swayam MOOC platform - Framework & Ideas
Swayam MOOC platform - Framework & IdeasSwayam MOOC platform - Framework & Ideas
Swayam MOOC platform - Framework & IdeasSatish AG
 

Mehr von Satish AG (7)

Terrific Thursday Visualization 101
Terrific Thursday Visualization 101Terrific Thursday Visualization 101
Terrific Thursday Visualization 101
 
EduSparkz Thunder Thursday Concentrate Better
EduSparkz Thunder Thursday Concentrate BetterEduSparkz Thunder Thursday Concentrate Better
EduSparkz Thunder Thursday Concentrate Better
 
Edusparkz Thunder Thursday Googlepower
Edusparkz Thunder Thursday GooglepowerEdusparkz Thunder Thursday Googlepower
Edusparkz Thunder Thursday Googlepower
 
EduSparkz Thunder Thursday Email Etiquette
EduSparkz Thunder Thursday Email EtiquetteEduSparkz Thunder Thursday Email Etiquette
EduSparkz Thunder Thursday Email Etiquette
 
EduSparkz thunder thursday linkedin
EduSparkz thunder thursday linkedinEduSparkz thunder thursday linkedin
EduSparkz thunder thursday linkedin
 
EduSparkz Thunder Thursday: Insights on Photoshop
EduSparkz Thunder Thursday: Insights on PhotoshopEduSparkz Thunder Thursday: Insights on Photoshop
EduSparkz Thunder Thursday: Insights on Photoshop
 
Swayam MOOC platform - Framework & Ideas
Swayam MOOC platform - Framework & IdeasSwayam MOOC platform - Framework & Ideas
Swayam MOOC platform - Framework & Ideas
 

KĂŒrzlich hochgeladen

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
80 ĐỀ THI THỏ TUYỂN SINH TIáșŸNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỏ TUYỂN SINH TIáșŸNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỏ TUYỂN SINH TIáșŸNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỏ TUYỂN SINH TIáșŸNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 

KĂŒrzlich hochgeladen (20)

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
80 ĐỀ THI THỏ TUYỂN SINH TIáșŸNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỏ TUYỂN SINH TIáșŸNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỏ TUYỂN SINH TIáșŸNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỏ TUYỂN SINH TIáșŸNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 

EduSparkz Thunder Thursday Debugging Code

  • 1. THUNDER THURSDAY INSIGHTS – 8 DEBUG EFFICIENTLY AND EFFECTIVELY!
  • 2. 1 Even if you have fixed something, it is done without having reproduced the original bug and having no idea what you have actually done. So, always find the exact steps to reproduce the bug. If you can’t reproduce it, find someone who can! Always Reproduce the Bug Before You Start Changing Code Never just see the description of a problem, immediately make some random assumptions, proceed to make changes in the code cause soon you will find it’s not fixed.
  • 3. 2 Understand Stack Traces 99% of time the stack trace will come from a bad assumption in your OWN code. Now it may not be that exact line which has the bug, but you’ll need to work backwards up through the code to find where a bad argument was perhaps passed in. Therefore: Always wrap exceptions thrown to you! Not every bug will have a stack trace, but most of them do. The key to remember is that the root cause, the filthy culprit that broke your perfect day, is usually wrapped up several layers deep. So work from the bottom of the scary long stack trace upwards to find the root cause!
  • 4. 3 Know Your Error Codes 404 - You might have the wrong url in your app 401 - Your credentials are likely wrong 418 - You’re talking to a teapot! (seriously https://tools.ietf.org/html/rfc2324) 429 - You’re making too many requests Given how fundamental HTTP is to pretty much every app these days, knowing what the HTTP error code means can be a huge help in diagnosing bugs! If you get an HTTP error code, always Google it to make sure you understand it. Again, it’ll save you a lot of time! The same goes for Database drivers and other protocols. If you see an error code, Google it with the name of the database and look for the official docs.
  • 5. 4 Google! Bing! Duck! Duck! Go! Whatever your search engine of choice is, you're sure to find a helpful answer somewhere in the internet. Just gather up as much information as possible before you hit "search" in the search engine.
  • 6. 5 Pair Program Your Way Out of It Bring in a colleague, a friend (or a CodeMentor) and talk them through it. Show them the bug and the code, tell them everything that you’ve tried and explain to them what you think the problem is. You would be shocked to find out how often just the simple fact that you’re talking it through and having If you find yourself spending more than 30 minutes hacking away and not making any progress, stop right there! to explain it to someone else can suddenly help you see what the issue really is. Other times, it might actually be a complex issue (like a race condition) and having a second set of eyes can help pick up edge cases and scenario’s you have not even considered.
  • 7. 6 Celebrate Your Fix! Whether you turned a test from red to green or closed out a ticket on your queue, give yourself a solid high- five. You've just saved the day and deserve all the credit coming your way on this one.