Access file name and line number for error handling purposes

When an app throws an error and your code catches it, you can access error name, error code and error message, which is nice, but not enough. What’s missing is where the error happened.

Is there a way in Ionic (or angular) to know file name and line number?

My googling gave 0 results, but maybe somebody knows…

Thanks.

See: