Log points

Instead of adding console.log statements to debug your JavaScript, try using log points.

Log points act much like breakpoints but log a message when they are hit. Evaluate an expression in the message by wrapping it in curly braces.