Easy Tutorial
❮ Prop Img Border Met Win Stop ❯

HTML DOM console.trace() Method

Console Object

Example

Track the call trace of a function:


Definition and Usage

The console.trace() method is used to display the call path of the currently executing code in the stack.

Note: The console needs to be visible during testing (open the console in the browser by pressing F12).


Syntax

console.trace(label)

Browser Support

The numbers in the table indicate the first browser version that supports the method.

Method
console.trace() Yes 11 10 4 Yes

Console Object

❮ Prop Img Border Met Win Stop ❯