console.trace(object)
Prints the stack trace from the point where this method was invoked. It also prints the line code in the script where the method was invoked.
| Arguments | Description | 
|---|---|
| object | Optional. If an object is passed to the method its content will be printed to the console. | 
Example
In this example a function inside a library is invoked in a script.
// Library code.
function testTrace() {
  console.trace("[My Library]");
}// The script references the library.
console.trace();7/11/2016, 10:50:24 AM: Trace: [My Library] at testTrace (<anonymous>:2:11) at <anonymous>:27:1