From: rickhg12hs Date: 2006-08-31T14:45:25+09:00 Subject: Re: debug flag being ignored > I'm trying to run 'ruby -d foo.rb' and the d is either ignored or I don't > understand how it works. The code just runs as if there is no -d option. "-d" sets $DEBUG to true. Does your code execute something when $DEBUG is true? For example: puts "Important intermediate value: #{my_critical_var}" if $DEBUG