Didn't make the #ChromeDevSummit this year? Catch all the content (and more!) in the Chrome Dev Summit 2019 playlist on our Chrome Developers YouTube Channel.

Print out a quick stack trace from the Console

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)