GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
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...
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.
I just tried this with the iPhone simulator. It doesn't appear to be returning anything beyond a message.
On iOS 6 and earlier, you'll have to use https://github.com/stacktracejs/stack-generator to artificially create stack traces.