This gist contains configuration to make Pry behave a bit better under Puppet Server JRuby.
For debugging, the following might be helpful:
- Install the
pry-nav
gem. This is an oldschool "debugger" plugin for Pry and one of the first produced. Newer options likepry-debugger
orpry-byebug
are much, much better but are tightly integrated with CRuby. The pry-nav plugin provides "next", "step" and "continue" and is as dumb as a bag of hammers, but much better than nothing.
Outstanding issues:
- Readline completion is busted under Puppet Server for some unknown reason. It works fine when running Pry under a normal JRuby shell. My guess is that some clojure bit is intercepting the tab characters.