Sha256: 74bf8ca74a5ba5e8154b1b95c1e6346c13dd32941b33572cc8aed5503812eeaf

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

require 'pp'

#eval(easy_breakpoint)
module Kernel
  
  def easy_breakpoint 
    <<-EOS
      puts 'easy-breakpoint>'
      input = STDIN.readline.chop!
      unless input == "stop"
        begin
          eval(input)
        rescue => e
          p e
          pp e.backtrace
        end
        eval easy_breakpoint
      end
    EOS
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
luruju-0.1.0 lib/luruju/easy_breakpoint.rb