From: Marcin Raczkowski Date: 2008-01-02T06:02:12+09:00 Subject: Re: create a irb like console for my program my hack that i use for quick debugging on my programs is require 'pp' # do some setup $stdout.write("# "); $stdout.flush while line = gets pp eval(line) $stdout.write("\n# "); $stdout.flush # or # pp main_object.instance_eval(line) end problem is of course that you have to make all your commands one-liners, but aside from that it works like a charm