maybe first
require 'rubygems'
then require the file,
maybe run it from within that directory.
maybe do Dir.chdir to it, first, then require.

eggman2001 wrote:
> I run this one gem with the command "foo <options>". I'd like to try
> to run it off the foo.rb file so that I can debug it. However, when I
> do "ruby path/to/foo.rb <options>" it doesn't behave in the same way
> as "foo <options>". How do I need to run this program in order to
> debug it?

Specifics would be nice, as I don't quite understand what you're trying 
to do. "run a gem"?
-- 
Posted via http://www.ruby-forum.com/.