PatrickJS / NG6-starter

:ng: An AngularJS Starter repo for AngularJS + ES6 + Webpack
https://angularclass.github.io/NG6-starter
Apache License 2.0
1.91k stars 1.35k forks source link

Debugging an NG6-Starter application #196

Closed blowsie closed 7 years ago

blowsie commented 7 years ago

Hi,

Whenever my application throws an error, in the console it shows it coming from angular.js and not the controller file where the error actually originated.

This makes for some very difficult debugging.

image

Is there a way the debugging information can be improved to show the source of the error?

fesor commented 7 years ago

This makes for some very difficult debugging.

Yep, this is pretty common problem. You could use solutions like this to make stack traces more readable. You could also try to use zone.js with long stack traces.