From: ts Date: 2001-07-20T14:42:12+09:00 Subject: [ruby-talk:18172] Re: Debugging minimalism for newbies (Re: Re: An exercise in minimalism) >>>>> "A" == A Bull in the China Shop of Life writes: >> n=$*[0].to_f/2 >> (0-n..n).each{|x|puts" "*x.abs+"#"*(2*(n-x.abs))} [...] A> Is there any way to step through this one substatement at a time? When run A> through the Ruby debugger the debugger wants to treat this as like 2 A> logical lines which doesn't help :) You can always ask ruby to know what it do pigeon% cat b.rb require 'iis' puts dump n=$*[0].to_f/2 (0-n..n).each{|x|puts" "*x.abs+"#"*(2*(n-x.abs))} pigeon% pigeon% ruby b.rb 8 require("iis") puts(dump) n = $*[0].to_f / 2 (0 - n .. n).each do |x| puts((" " * x.abs) + ("#" * (2 * (n - x.abs)))) end ## #### ###### ######## ###### #### ## pigeon% Guy Decoux