I have an error happening in code, and this is being triggered as part of a Scope.$eval. The stack trace doesn't give much clue from where it is happening.
How is it possible to debug / diagnose where is the actual code, or scope that the $eval
is trying to execute?
The stack trace in Chrome DevTools would be as below.
SyntaxError: Unexpected token /
at Object.parse (native)
at fromJson (build/js/vendor.bundle.min.js:28655:14)
at defaultHttpResponseTransform (build/js/vendor.bundle.min.js:36808:16)
at build/js/vendor.bundle.min.js:36899:12
at forEach (build/js/vendor.bundle.min.js:27739:20)
at transformData (build/js/vendor.bundle.min.js:36898:3)
at transformResponse (build/js/vendor.bundle.min.js:37678:23)
at processQueue (build/js/vendor.bundle.min.js:42081:28)
at build/js/vendor.bundle.min.js:42097:27
at Scope.$eval (build/js/vendor.bundle.min.js:43325:28) undefined