HTML DOM console.trace() methode
- Previous page timeEnd()
- Next page warn()
- Go back one level Window Console Object
Definitie en gebruik
De console.trace() methode toont de traceering en laat zien hoe de code op een bepaald punt ophoudt.
Tip:Zorg ervoor dat het console-venster zichtbaar is wanneer je de consolemethoden test (druk op F12 om de console te openen).
Voorbeeld
Toon hoe de traceering hier eindigt:
function myFunction() { myOtherFunction(); } function myOtherFunction() { console.trace(); }
Syntax
console.trace(label)
Browser support
The numbers in the table indicate the first browser version that fully supports this method.
Method | Chrome | IE | Firefox | Safari | Opera |
---|---|---|---|---|---|
console.trace() | Support | 11 | 10 | 4 | Support |
- Previous page timeEnd()
- Next page warn()
- Go back one level Window Console Object