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

Debug events issue on the first statement of the begin block in jruby 9.4 #7495

Open
hurricup opened this issue Nov 29, 2022 · 0 comments
Open

Comments

@hurricup
Copy link

When trying to debug a ruby script with ruby-debug it now stops twice on first statement on the begin block.

begin 
  puts 42 #bp here, will stop second time after stepping over
  puts 42
rescue TypeError => e
  puts "Name error"
rescue
  puts "rescued"
ensure
  puts("ensured")
end

I'm not really familiar on how this work in jruby, could not even introspect iseq / events. So can't be much help here yet. But probably it will hint you about something.

Works fine in < 9.4

Tested from RubyMine

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