Re:Show HN: Proxino - optimize and monitor your javascript
by dstein on Wednesday August 10, 2011 @02:12PM
(#2869449)
You can do this pretty easily without a third-party by just using window.onerror, and then doing an ajax request to log it.
[ Parent
| on HN ]
Re:Show HN: Proxino - optimize and monitor your javascript
by unignorant on Wednesday August 10, 2011 @02:20PM
(#2869485)
Not necessarily -- window.onerror isn't fully supported by some browsers and libraries:
http://blog.proxino.com/post/8388203148/catching-the-worlds-...
Re:Show HN: Proxino - optimize and monitor your javascript
by dstein on Wednesday August 10, 2011 @02:28PM
(#2869520)
Yeah and just as easily you can put a try/catch around your code and do the same ajax logging.
Re:Show HN: Proxino - optimize and monitor your javascript
by zaveri on Wednesday August 10, 2011 @02:41PM
(#2869590)
Sure, that is possible if you want to spend the time wrapping every function in your code with a try/catch block. Most people don't, and so we provide automatic code instrumentation. You can't just wrap your js file in a single try/catch.