Console.trace()
No estándar
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Outputs a stack trace to the Web Console.
Nota:
Esta característica está disponible en Web Workers.Ver Stack traces en la documentación de console
para detalles y ejemplos.
Sintaxis
console.trace();
Ejemplo
function foo() {
function bar() {
console.trace();
}
bar();
}
foo();
La siguiente indicador será mostrado en la consola:
bar foo <anonymous>
Especificaciones
Specification | Status | Comment |
---|---|---|
Console API La definición de 'console.trace()' en esta especificación. |
Living Standard | Initial definition |
Compatibilidad con el navegador
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help! (en-US)
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) | 10.0 (10.0) | 11 | (Yes) | (Yes) |
Available in workers | (Yes) | ? | 38.0 (38.0) | (Yes) | (Yes) | (Yes) |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | (Yes) | 10.0 (10.0) | ? | ? | ? |
Available in workers | ? | ? | 38.0 (38.0) | ? | ? | ? |