 +    assert_not_nil(value, "#{key} is set in config.yaml") unless may_be_nil
 +    value || default_value
 +  end
++  module_function :config_load
+ 
++  def load_ruby
++    config_load('ruby', true)
++  end
++  module_function :load_ruby
++
++  def load_params
++    config_load('ruby_params', true)
++  end
++  module_function :load_params
 +  
  end
  
+Index: test/test-init.rb
+===================================================================
+--- test/test-init.rb	(revision 830)
++++ test/test-init.rb	(working copy)
+@@ -1,6 +1,7 @@
+ #!/usr/bin/env ruby
+ require 'test/unit'
+ require 'rbconfig'
++require File.join(File.dirname(__FILE__), 'helper.rb')
+ 
+ # begin require 'rubygems' rescue LoadError end
+ # require 'ruby-debug'; Debugger.start
+@@ -16,7 +17,8 @@
+       old_columns = ENV['COLUMNS']
+       ENV['EMACS'] = nil
+       ENV['COLUMNS'] = '120'
+-      IO.popen("./gcd-dbg.rb 5 >#{debugger_output}", 'w') do |pipe|
++      ruby = "#{TestHelper.load_ruby} #{TestHelper.load_params}"
++      IO.popen("#{ruby} ./gcd-dbg.rb 5 >#{debugger_output}", 'w') do |pipe|
+         pipe.puts 'p Debugger::PROG_SCRIPT'
+         pipe.puts 'show args'
+         pipe.puts 'quit unconditionally'

 # require 'diff/lcs'
 # require 'diff/lcs/hunk'
 
@@ -21,12 +22,15 @@
     end
     
     ENV['RDEBUG'] = debug_pgm

 # info break
 No breakpoints.
 # # Should get a message about having no breakpoints.
Index: test/data/output.right
===================================================================
--- test/data/output.right	(revision 830)
+++ test/data/output.right	(working copy)
@@ -31,9 +31,13 @@
 two
 stopped
 stack
---> #0 debug_program at line tdebug.rb:53
+--> #0 Object.debug_program(options#OpenStruct) at line tdebug.rb:53
 
 variables
+bt = nil
+d0 = "./output.rb"
+options = #<OpenStruct annotate=false, emacs=false, frame_bind=false, no-quit...
+output = "Syntax OK\n"
 self = main
 
 source tdebug.rb:53
Index: test/data/stepping.cmd
===================================================================
--- test/data/stepping.cmd	(revision 830)
