Reputation: 67440
I'm trying to troubleshoot an issue so I'm doing console.trace
a lot. In chrome, there's a way to hit the arrow button and collapse the stack trace to a single line. What I'm wondering is, is there a way to print them in a collapsed state so I don't have to click the arrow by hand?
Upvotes: 1
Views: 303
Reputation: 106443
For some reasons it was decided that console.trace()
should always start expanded. There's an open issue in Chromium bugtracker about it, but it seems to be stalemated.
Meanwhile, you can just use console.error()
instead: it starts collapsed, but can be expanded.
Upvotes: 4