i = 1j = 0until i > 1000000 i *= 2 j += 1endputs "i = #{i}, j = #{j}"# run as following# ruby -r debug debugtest.rb