how to get javascript function call stack code example Example: javascript dump strack trace console.trace();