Skip to main content
Version: 3.27.2

console.trace()

The console.trace() method outputs a stack trace to the console.

Syntax

trace()
trace(object1, /* …, */ objectN)

Parameters

  • objects optional
    • : Zero or more objects to be output to console along with the trace. These are assembled and formatted the same way they would be if passed to the console.log() method.

Return value

undefined.