AngularJS : tools and debug
There are complementary tools:
To make life easier in the hierarchy of scopes that can quickly become complex, a chrome extension let visualize them: batarang. Easy to locate the reason for the non-visibility of one of your variables.
Let’s take a look to the screencast which explains how to use this extension:
All exceptions are catch by $exceptionHandler service which by default applies a $log.error() of stack trace. You can change the behavior by injecting your own implementation. In this example the implementation sending the trace to a HTTP POST (see “Networks” tab in your Chrome Developer Tools to see the POST run).
And do not forget Dean’s tips and tricks to avoid or find errors.
WebStorm IDE and Sublime Text 2 have AngularJS plugins with mainly content-assist feature:
Easy installation because plugin is developed by John Lindquist from the JetBrains team, so it is available in the main repository. Just go to Settings => Plugins => Browse and select AngularJS repositories to install.
Sublime Text 2
If you installed the package controller the plugin installation is very simple. There are 2 plugin now:
With all these development tools you can becomes as productive and maintainable as with Java