This is a gem, which adds the XML printer to the 'debugger' or 'byebug' gems, using the same API as the ruby-debug-ide gem, which allows it to be used with Ruby IDEs (for example, in my vim-ruby-debugger :))
As usual, add it to your Gemfile, and you are all set
gem 'debugger-xml'
There is the the bin/rdebug-ide file, check it out. For description of XML API, check http://debug-commons.rubyforge.org/protocol-spec.html, I tried to be compatible with it
It uses debugger/test helpers. To run all tests, just do
rake test