Print out a quick stack trace from the Console
You can use console.trace()
to get a quick and easy stack trace to better understand code execution flow.
Notes:
- You get file names and line numbers which you can click on to navigate to the source.
- Console.trace is compatible with the snippets feature of Chrome DevTools.
- console.trace is part of the Console API (just like
console.log
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2015-07-13 UTC.
[null,null,["Last updated 2015-07-13 UTC."],[],[]]