Want this course?
println debugging has a long tradition. It's a great way to quickly pinpoint problems in your code. It lets you figure out where the bug is, and also surface intermediate values that can help you understand what's going on. In this lesson, we talk about how to do println debugging in Clojure, including the 3 types of printing, 3 tricks for embedding printlns in your code, and a cool other way to surface the value that is causing an error.
Scientific debugging might also be called "repl-driven debugging". It's basically executing expressions from your program at the repl to pinpoint the source of a problem. You form a hypothesis (a guess about where the bug is), do an experiment (run an expression), and analyze the results.