Note: This feature is available in Web Workers.
The console.trace()
static method outputs a stack trace to the console.
Note: In some browsers, console.trace()
may also output the sequence of calls and asynchronous events leading to the current console.trace()
which are not on the call stack — to help identify the origin of the current event evaluation loop.
See Stack traces in the console
documentation for details and examples.