YouTip LogoYouTip

Met Console Trace

# HTML DOM console.trace() Method [![Image 3: Console Object](#) Console Object](#) ## Example Trace the call path of a function: function myFunction(){myOtherFunction(); }function myOtherFunction(){console.trace(); } [Try it Yourself Β»](#) * * * ## Definition and Usage The console.trace() method displays the call path of the currently executing code in the stack. **Note:** During testing of this method, the console needs to be visible (press F12 in the browser to open the console). * * * ## Syntax console.trace(label) * * * ## Browser Support The numbers in the table specify the first browser version that fully supports the method. | Method | | | | | | | --- | --- | --- | --- | --- | --- | | console.trace() | Yes | 11 | 10 | 4 | Yes | [![Image 4: Console Object](#) Console Object](#)
← Java9 New FeaturesMet Console Log β†’