throwing error generate stack trace javascript code example Example: javascript dump strack trace console.trace();