Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mruby not printing backtraces anymore? #2472

Closed
pigoz opened this issue Jul 14, 2014 · 0 comments
Closed

mruby not printing backtraces anymore? #2472

pigoz opened this issue Jul 14, 2014 · 0 comments

Comments

@pigoz
Copy link

pigoz commented Jul 14, 2014

Sorry, this is more of a question, I hope it's not too annoying. Trying to get backtraces from mrb with mrb_get_backtrace, but then I realized the mruby executable doesn't print them as well. This is the test file:

def foo
  this_will_fail
end

def bar
  foo
end

def baz
  bar
end

baz

Using mruby (git master)

/Users/pigoz/test.mrb:2: undefined method 'this_will_fail' for main (NoMethodError)

Using mruby (1.0)

trace:
    [3] /Users/pigoz/test.mrb:2:in Object.foo
    [2] /Users/pigoz/test.mrb:6:in Object.bar
    [1] /Users/pigoz/test.mrb:10:in Object.baz
    [0] /Users/pigoz/test.mrb:13
/Users/pigoz/test.mrb:2: undefined method 'this_will_fail' for main (NoMethodError)

Is this a bug? Am a I doing something terribly wrong?

Thanks

@matz matz closed this as completed in 472a1c2 Jul 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant