Bugs item #2096, was opened at 2005-07-09 22:00 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2096&group_id=426 Category: Core Group: None Status: Open Resolution: None Priority: 3 Submitted By: mathew ! (meta) Assigned to: Nobody (None) Summary: The 'watch' command crashes the debugger if ruby is run with the -w flag Initial Comment: file wtf.rb: x = 1 puts "Hello world" x = 2 transcript of session: $ ruby -rdebug wtf.rb Debug.rb Emacs support available. wtf.rb:1:x = 1 (rdb:1) watch x==1 Set watchpoint 1 (rdb:1) quit Really quit? (y/n) y $ ruby -w -rdebug wtf.rb Debug.rb Emacs support available. wtf.rb:1:x = 1 (rdb:1) watch x==1 /usr/lib/ruby/1.8/debug.rb:327:in `printf': too many arguments for format string (ArgumentError) from /usr/lib/ruby/1.8/debug.rb:327:in `debug_command' from /usr/lib/ruby/1.8/debug.rb:273:in `catch' from /usr/lib/ruby/1.8/debug.rb:273:in `debug_command' from /usr/lib/ruby/1.8/debug.rb:722:in `trace_func' from /usr/lib/ruby/1.8/debug.rb:939 from /usr/lib/ruby/1.8/debug.rb:938 from wtf.rb:1 $ ruby --version ruby 1.8.2 (2005-04-11) [i386-linux] ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2096&group_id=426