Skip to content

Debugging

Goals

  • Internalize the fact that errors are natural
  • Understand the importance of debugging
  • Learn basics debugging techniques

Content

  • Discuss that we all make mistakes and there is no way around it
  • Basic debugging principle: comparing what we expect with what we get
  • Show how to examine the program state (serial print)
  • Demonstrate and discuss the importance of minimal examples

Activities

  • Interactive demo and discussion

Task 1

Print some intermediate output to console

Task 2

Find and fix a bug in a given program