MountainWest JavaScript 2014 - Traces of Errors: Getting Better JavaScript Stacktraces

preview_player
Показать описание
By Todd Gardner

Let's write better JavaScript. Let's find and debug our errors. The first step is to understand them. We'll discuss JavaScript Error object in detail: How to use errors, how to catch them, and how to understand them. The asynchronous capabilities of JavaScript pose challenges to error handling that confuse many developers, so let's talk about some techniques to deal with errors across asynchronous boundaries. I'll also share some tips to improve the maintenance of your JavaScript applications.
Let's fix our bugs!

Help us caption & translate this video!

Рекомендации по теме
Комментарии
Автор

The column number is simply the spaces (horizontal position) before the code that invoked the error.  Ex: @ 19:57 The error is on line 48, column is reported as 12.  If you look at the code on line 48, there are twelve spaces preceding the throw error command.

jonmayer