Tutorial by Examples

Each Error object has a string property named stack that contains the stack trace:
Instrument your code with console.trace() calls that print current JavaScript call stacks:
Place assertions in your JavaScript code by calling console.assert() with the error condition as the first parameter. When this expression evaluates to false, you will see a corresponding console record:

Page 1 of 1