I've been wondering, whenever Angular logs error it's a pile of gibberish similar to this:
Error: [ng:areq] Argument 'AppController' is not a function, got undefined
http://errors.angularjs.org/1.2.23/ng/areq?p0=AppController&p1=not%20a%20function%2C%20got%20undefined
at http://localhost/NAME/vendors/angular/angular.js:78:12
at assertArg (http://localhost/NAME/vendors/angular/angular.js:1509:11)
at assertArgFn (http://localhost/NAME/vendors/angular/angular.js:1519:3)
at http://localhost/NAME/vendors/angular/angular.js:7271:9
at http://localhost/NAME/vendors/angular/angular.js:6663:34
at forEach (http://localhost/NAME/vendors/angular/angular.js:332:20)
at nodeLinkFn (http://localhost/NAME/vendors/angular/angular.js:6650:11)
at compositeLinkFn (http://localhost/NAME/vendors/angular/angular.js:6098:13)
at compositeLinkFn (http://localhost/NAME/vendors/angular/angular.js:6101:13)
at compositeLinkFn (http://localhost/NAME/vendors/angular/angular.js:6101:13)
How do I know which line of MY code (not angular source code) triggered the error? Adding breakpoints or Batarang isn't helping.
Edit
I don't have problem with this specific error. There are cases where angular logs a line number, say Controller.js:1183:48, and cases where it doesn't. What makes the difference? And in latter cases, how do I find out MY error line?