I am running some javascript inside a rails 3 app using therubyracer and v8
If anything goes wrong, the error message gets sent to me via email through the usual rails 3 exception notification process.
However, the error message I get back is pretty vague and the stack trace doesn't go into the javascript file itself. This is understandable, but makes it pretty hard to debug. Here's an example:
V8::JSError: Cannot read property '0' of undefined
backtrace:
lib/libraryname.rb:32:in `function_that_calls_v8'
lib/libraryname.rb:18:in `fetch_and_update'
app/models/listing.rb:34:in `fetch'
Is there a way I can expose the javascript stacktrace so that when an exception is thrown so that I can tell what line inside the javascript is borking? (at the very least, get the line number)