Logging Without console.log

Logging Without console.log

Chrome provides you an option to add logging statements without the actual console.log statement in your code.

Try

  1. Open Sources tab with file 1-logging.js
  2. Right-click on the line number to add a logpoint inside randomGenerator() function
  3. Add some variable inside the add logpoint window to see the values of those variables being logged.
  4. Click on the button below to trigger the function call
Start/Restart Processing

Preview