Paul Krill
Editor at Large

Angular adds error codes, debugging guides

news
Jan 29, 20211 min

Angular 11.1.0 point release introduces standardized error codes, with error descriptions and debugging guides provided online.

To improve debugging and help developers solve problems quicker, the developers behind the Angular JavaScript framework have released standardized error codes and debugging guides for the platform.

Error codes are featured in the Angular 11.1.0 release, which was published January 20. The most common Angular error messages have been fitted with standardized error codes, details, and formatting.

Angular error messages start with NG, to help differentiate Angular-specific errors from TypeScript errors and browser messaging. The next number in the message indicates type, with runtime errors beginning with 0 and compiler issues maintaining their existing number space of 1 through 9. The goal of these changes is to help developers recognize framework errors and make them more searchable.

Also added to error messages is a link to angular.io/errors, where you’ll find descriptions of the most common errors and guides for debugging them. A series of Angular debugging videos is now available on YouTube.

The Angular 11.1.0 point release, accessible on GitHub, offers performance improvements, enhancements for the compiler and language service, and a multitude of bug fixes. Angular 12, expected to arrive in May, is set to feature more improvements to error messaging and the ng-linker for distributing Ivy libraries to NPM.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author