Augury – A Tool to Debug and Profile your Angular App

| By Maina Wycliffe | | | Angular

Augury is an open source tool available to Google Chrome that was developed by Google in conjunction with Rangle.IO for debugging and profiling your Angular application. Augury will provide detailed insights of your application structure and how different app building blocks relate to each other. These building blocks are: Components, Services, Routes, Modules, Dependencies, Injectors, Data bindings, Events and Object properties. Augury helps Angular developers to visualize their application through component trees and debugging tools. For Augury to work your app must be in development mode and won’t work on when in development mode.

Features

It has the following features that are useful to your application:

Dependency Injection

Augury - Component Tree

Augury Provides a hierarchical view of the structure of your Angular App. You can view components and how they relate to each other in the application – Parent – child component relationship. It will provide more information on the property tab (located on the right) if you select a component. This will display the state and the title of the component. You can also view the source code of a component by selecting view source on the property tab.

Please note if a source map doesn’t exist for your application, you will see minified JS source instead of your beautifully crafted TypeScript code Also, you can view the app dependencies inside the state property under the property tab. This information is also provided visually using the injector graph tab just next to the property tab. It provides a visual representation of component dependencies instead of using the source code to do the same. You can learn more about this here.

Module List

This will provide you with information about all the modules in your application starting with appModule. This feature provides a list of imports, exports, providers, declarations found in the module. This includes all angular modules you have used in your application such as BrowserModule, httpModule etc. and all your feature modules that you have created yourself. You can learn more about this here.

Routes Tree

Augury - Router Tree

Router tree displays all the defined routes that are currently loaded in the application in a hierarchical tree manner. It starts from the AppComponent which is the root components going all the way to the last component in the root. It will show you the name of the component and the router path if you hover on a route in the route tree. You can more about augury routes feature here.

Installation

You can get augury in the Google Chrome Webstore here. Then click on add to chrome and wait for the process to complete. There are other browser that accept chrome extensions but I have not tested whether augury works on them.

Using Augury

You must have an angular application in development mode to use Augury. Then open the developers’ tools (DevTools) in chrome by pressing Ctrl + Shift + I in windows or Cmd + Opt + I in Mac OS X. Then locate the Augury tab on the far right.

Augury – A Tool to Debug and Profile your Angular App

You can get augury tutorials and detailed demos here.

Angular 5 – Handling Token Based Authentication

Token based authentication is popular for single page applications. A token is a security code issued by a server for authenticating and …

Read More
How to build a HTTP Interceptor in Angular 5

Introduction A HTTP Interceptor enables you to catch HTTP requests and responses so that you can modify them. It is very useful especially …

Read More
Image Sliders and Carousels for Angular 4

Web developers require from time to time to create different types of images sliders and carousel in their apps. Most developers coming from …

Read More
How to upgrade your Angular 4 App to Angular 5.0

Angular 5 was finally released earlier this week after several delays. It brings a lot of improvements over Angular 4 and new features as …

Read More
Angular 5 has been released

Angular 5 was finally released after several delays yesterday, November 1, 2017. It was also accompanied by Angular CLI 1.5. This is a major …

Read More
How to setup Yarn Package Manager for Angular (Updated)

Last week, I briefly touched on Yarn Package Manager in my post about 5 must have tools for angular developer. Yarn Package Manager – simply …

Read More

Comments