Using RubyMotion 6.1...there seems to be an issue with reporting the correct line numbers in backtraces. I have included a reproducible example.
Given the following class:
class LineNumberExample
def trigger_error
first_block_called do
second_block_called do
example_error
end
end
end
def first_block_called(&block)
block.call
end
def second_block_called(&block)
block.call
end
def example_error
foobar
end
end
And calling it from within the app:
example = LineNumberExample.new
example.trigger_error
Using RubyMotion 6.1...there seems to be an issue with reporting the correct line numbers in backtraces. I have included a reproducible example.
Given the following class:
And calling it from within the app:
Results in this error: