javascript

Best Practices for Logging in Node.js

August 30, 2018

Logging is one of those Node.js functions that’s easy to take for granted — until some unexpected event results in hours, sometimes days, of searching through log files to pinpoint the source of a problem. Node.js apps create basic text logs just like any other application. These logs can be easily generated using open source logging libraries, such as the Winston or Bunyan libraries.

Continue reading

Error tracking with Vue.js

August 8, 2018

We’ll show you how to add error handling in a Vue application to capture caught and uncaught errors. This gives you an opportunity to recover and update what’s presented to the user, as well as track the error to prioritize fixes.

Continue reading

Top 10 JavaScript errors from 1000+ projects (and how to avoid them)

January 24, 2018

To give back to our community of developers, we looked at our database of thousands of projects and found the top 10 errors in JavaScript. We’re going to show you what causes them and how to prevent them from happening. If you avoid these “gotchas,” it’ll make you a better developer.

Continue reading

JavaScript Error Logging with Rollbar

October 26, 2017

Real-time bug tracking, crash alerting, and analytics reporting for JavaScript. Getting started is quick and easy.

Continue reading

Custom error handling for Angular

October 24, 2017

Angular 2+ is a popular open-source JavaScript MVC framework that lets you build highly structured, testable, and maintainable front-end applications. Angular is most commonly used on single-page applications. Stable and reliable single page applications depend on solid client-side error monitoring tools and techniques. But, getting the right exception data and context isn’t always easy. We’re going to dive into how to capture, handle and debug Angular errors.

Continue reading

React 16 Error Boundaries Let You Recover Gracefully

October 11, 2017

React recently announced the release of version 16 with long standing feature requests including error boundaries, fragments, improved server-side rendering and more. Error boundaries are especially useful so that an error in one small part of the UI doesn’t break your entire application. Instead, it’s better to contain those errors to the affected components and recover gracefully.

You can try using error boundaries yourself in our working Codepen example.

Continue reading

Introducing JavaScript Telemetry

August 16, 2017

We’re excited to introduce JavaScript telemetry, which provides a timeline of events in the browser leading up to when an error occurred. This helps you find the root cause of JavaScript errors faster by providing critical information on user behavior, network activity, and more. You might also think of this timeline of events as a trail of breadcrumbs or a black box recorder which tells you what happened just before a crash or error.

Continue reading

New and improved JavaScript notifier SDK - rollbar.js 2.0

May 20, 2017

We are excited to announce a major update to our JavaScript notifier SDK in version 2.0. This new version adds support for isomorphic or universal applications, which can run on both the client and the server. It standardizes the configuration and logging across environments, and makes it consistent with notifiers for other languages.

Continue reading