Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular stacktrace in Firefox with Firebug

I'm developing a webapp in Angular and I'm using Firefox with Firebug for debugging.

Whenever there is an error in my Angular, it fails to properly display the stacktrace. Instead it shows something like this in the console.log:

enter image description here

In Chrome, I get a nice stacktrace with a clickable link to the error definition:

enter image description here

Am I forced to switch to Chrome for developing in Angular, or is there a fix for this?

like image 503
wvdz Avatar asked Oct 20 '14 22:10

wvdz


1 Answers

Try to replace the minified version of Angular with the non-minified one.
If it is an injection problem, you will have more meaningful feedback in the console.
As more general answer, the best tools to debug angular are AngularJS Batarang and ng-inspector and, yes, they are Chrome extensions.

like image 100
pasine Avatar answered Sep 30 '22 14:09

pasine