If I am understanding you correctly, you could do something like... if ENV['DEBUG'] prog_name = _FILE_ else prog_name = $0 end
if prog_name == _FILE_... On Wed, Apr 15, 2009 at 11:10 AM, cw <[email protected]> wrote: > > I am a newbie looking at some code that expects these to variables to > match. > > They do not match while running under the NB debugger. > > $0 = C:\Program Files\NetBeans 6.5.1\ruby2\jruby-1.1.4\bin > \rdebug-ide > _FILE_ = C:/cw/iptc/iptc.rb > > > How can I write code that will allow for this code to behave properly > - even when running in a debugger or jirb? > > Or is the conditional check that important to begin with? > > Regards, > > CW > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ruby-on-rails-programming-with-passion" group. To unsubscribe from this group, send email to ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---
