line number of error in try...catch on IPhone's safari #40

Closed
gregbala opened this Issue Jun 12, 2012 · 3 comments

Comments

4 participants

Hey Guys

I stumbled upon this as I was trying to solve my issue:

I must capture all errors using try...catch block. On safari, the object that is passed to catch as a "line" properly that gives me the line of where the original error occurred. on I Phone, all I get is "message" property - no line number of the original error.

Is there a solution for this problem? I see this utility also does not get the stack trace for safari, but all i need, is a line number. Wonder if you guys have the same issue. I found remarkably little info on this problem...

Contributor

victor-homyakov commented Jun 27, 2012

Sorry for late answer - I was in the hospital. We have special test page in our project - test/functional/ExceptionLab.html. Please check out project, open this page in browser, and press button "Exception 1". You will see version of your browser at the top of the page and dump of the error object. Show me both version and dump.

wagenet commented Aug 29, 2012

I just tried this with the iPhone simulator. It doesn't appear to be returning anything beyond a message.

iPhone

@eriwen eriwen added the iOS label Oct 7, 2014

Owner

eriwen commented Nov 17, 2014

On iOS 6 and earlier, you'll have to use https://github.com/stacktracejs/stack-generator to artificially create stack traces.

@eriwen eriwen closed this Nov 17, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment