I’m using console.log to debug errors while I develop, but it cuts off my stack traces after a handful of lines.
Is it possible to have it not do that?
Is there a better “print to stdout” that I should be using for longer chunks like stack traces?
Edit: Regarding a comment from Ryan Olds, the problem isn’t that the stack only includes the most recent “event’, but that the string being printed by console.log is truncating after a certain number of characters. It often stops in the middle of a line.
console.error(...)seems to print the full stack message.