It worked for me, make sure the code is added outside of the "module Debugger" block in xml_printer.rb. I added the code inside the module block the first time and got the same exception, but placing it outside the module block got rid of the exception and allows variables to be inspected.