During development, we will not write the right code on the first draft. As humans, we make mistakes and do not perfectly remember all of the framework that we use.
In this chapter, we would like to give an entry point into debugging the code. The most obvious debugging system is to print in the console of the browser. This is done by directly using println() in Scala, and then looking at the log that is displayed in the console.
To have a look at the console and other debugging tools, you have to enable the developer tools on your browser. I am using Safari on Macintosh, but if you do not want to use it, I would recommend Google Chrome; the features are almost the same.
In Safari, enable the developer tools by clicking ...