Knaph

Debugging

Finding out why a program does the wrong thing, by reading its error messages, guessing a cause, and checking the guess against the program's real values.

Depth 1 · Foundation

You read a traceback from the bottom, form a hypothesis that explains exactly what went wrong, test it with a print of the real values, cut the program in half to narrow the search, and explain code line by line to find the slip.

Sign in to prove what you know with a short quiz, see how deep you've gone, and earn XP for it.

Sign in with Google

Depths of understanding

  1. 1

    Foundation

    You read a traceback from the bottom, form a hypothesis that explains exactly what went wrong, test it with a print of the real values, cut the program in half to narrow the search, and explain code line by line to find the slip.

Your path here

What's still between you and Debugging, depth 1, in the order you can learn it.

  1. 1ProgramDepth 1 · Foundation · Program Basics
  2. 2ExpressionDepth 1 · Foundation · Program Basics
  3. 3Error messagesDepth 1 · Foundation · Program Basics
  4. 4Variables in codeDepth 1 · Foundation · Program Basics
  5. 5Program stateDepth 1 · Foundation · Program Basics
  6. 6Input and outputDepth 1 · Foundation · Program Basics
  7. 7Functions in codeDepth 1 · Foundation · Functions
  8. 8Return valuesDepth 1 · Foundation · Functions
  9. 9BooleansDepth 1 · Foundation · Control Flow
  10. 10ConditionalsDepth 1 · Foundation · Control Flow
  11. 11Edge casesDepth 1 · Foundation · Writing Correct Code
  12. 12LoopsDepth 1 · Foundation · Control Flow
  13. 13Accumulator patternDepth 1 · Foundation · Control Flow
  14. 14Floating-point numbersDepth 1 · Foundation · Data Types
  15. 15Basic typesDepth 1 · Foundation · Data Types
  16. 16Character encodingDepth 1 · Foundation · Data Types
  17. 17StringsDepth 1 · Foundation · Data Types
  18. 18Type conversionDepth 1 · Foundation · Data Types
  19. 19ExceptionsDepth 1 · Foundation · Writing Correct Code
  20. 20TestingDepth 1 · Foundation · Writing Correct Code
  21. 21DebuggingDepth 1 · Foundation · Writing Correct Code

Where it fits