Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 978 Bytes

error-stack.md

File metadata and controls

20 lines (18 loc) · 978 Bytes
title authors intro types categories published updated status
Error.stack
thebeebs
In the statically typed code world I used to inhab...
shorts
debugging
web
html5at5
2012/06/28 12:00:00
2012/06/28 13:00:00
archived

In the statically typed code world I used to inhabit Call stacks were often used to diagnose the root cause of events. I wasn’t aware that JavaScript had a similar (albeit non ECMA5) way of performing error stack interrogation. It’s called Error.stack

It makes bugs -particularly those ones that are deep inside of anonymous functions - easier to research.

The IE blog has a rather good overview: http://blogs.msdn.com/b/ie/archive/2012/05/10/diagnosing-javascript-errors-faster-with-error-stack.aspx