debugger gem supports MRI versions after 1.9.2-p290
https://github.com/cldwalker/debugger-ruby_core_source/tree/master/lib/debugger/ruby_core_source

we can add https://github.com/jruby/jruby-debug for JRuby.
I did not add it as i am not using JRuby now