I am having problems with backtraces between ruby code and a java exception.
The following test will fail:

import org.jruby.test.TestHelper

def test_java_backtrace
  TestHelper.throwTestHelperException
rescue NativeException => ex
  backtrace = ex.backtrace.join("\r\n")

  if (!backtrace.include?("test_java_backtrace"))
    flunk("test_java_backtrace not in backtrace")
  end
end

Is there a different way or a setting that I can use to ensure that the ruby
method is included in the backtrace?

Not having the ruby method that called the offending java code makes
debugging my rails application difficult. It is very hard to find out which
controller + action was called that caused a domain level exception.

Cheers




<http://pastie.org/585593>

Reply via email to