FIXING
GOOGLING THE ERROR MESSAGE
Tom Lous - @tomlous
BREAKIN
G THE
UNDERSTANDING THE
ERROR
Tom Lous - @tomlous
UNDERSTANDING THE ERROR
WE’VE ALL EXPERIENCED ERRORS AND
EXCEPTIONS IN OUR CODE
Tom Lous - @tomlous
UNDERSTANDING THE ERROR
SEEMS OVERWHELMING
FOR BEGINNERS
▸ BUT THE CLUE IS MOST OF THE TIME IN THE STACK TRACE
Tom Lous - @tomlous
UNDERSTANDING THE ERROR
SOMETIMES IT’S LESS OBVIOUS
▸not (always)
repeatable
▸warning instead of
error
▸inside async thread
▸works on my machine
▸events leading to
message are unclear
Tom Lous - @tomlous
FIXING THE ERROR
STEPS TO TAKE
▸Look at the code
▸Debug the code
▸Have someone else look
at the code
▸Write tests
▸Go online and search
Tom Lous - @tomlous
FIXING THE ERROR
GOOGLE IS YOUR FRIEND
▸only the relevant message
▸use “ “ to search for the
exact message
▸remove local info
Tom Lous - @tomlous
FIXING THE ERROR
GOOGLE IS NOT ALWAYS YOUR FRIEND
OR
Tom Lous - @tomlous
FIXING THE ERROR
… NOT EVEN WHEN THERE IS 1 HIT
Tom Lous - @tomlous
SHARE THE PROBLEM
POST YOUR PROBLEM
▸Any Tech Community
Forum, like:
▸StackOverflow.com
Tom Lous - @tomlous
STACKOVERFLOW.COM
WHAT IS IT?
▸Q&A site for programmers
▸Built & run by the community
Tom Lous - @tomlous
STACKOVERFLOW.COM
SEARCH FIRST
▸Was a similar question posted before?
▸Avoid basic questions
Tom Lous - @tomlous
STACKOVERFLOW.COM
DO YOUR OWN WORK
▸Don’t ask the community to do your work for you
Tom Lous - @tomlous
STACKOVERFLOW.COM
DO YOUR OWN WORK (2)
▸Don’t just dump your problem
Tom Lous - @tomlous
STACKOVERFLOW.COM
PROVIDE CONTEXT
▸Don’t just ask questions out of the blue
Tom Lous - @tomlous
STACKOVERFLOW.COM
WRITE THE PERFECT QUESTION
▸Imagine you’re trying to answer the question
▸Provide a good title: should be a question.
▸Give technical context
▸What language / platform / framework & versions
▸Give operational context:
▸What should happen, what happend, what did you already try?
▸Formulate your problem statement
▸Give sample code & data
▸Check spelling, grammar & formatting
Tom Lous - @tomlous
FINALLY
CONCLUSION
▸Write code yourself, everyone started as a beginner
▸Failure is always an option. Make many mistakes as fast as
possible
▸Try to solve it yourself first, if all else fails ask community for
help
Tom Lous - @tomlous
FINALLY
BUT MOST OF ALL
▸HAVE FUN!
Tom Lous - @tomlous

Googling the Error Message