The console.trace()
method outputs a stack trace to the Web console.
Note: This feature is available in Web Workers
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.