Sha256: 25e36c4e901459e423d07b1bcc980ffb0e892120cc3a820855089d83e4df64f7

Contents?: true

Size: 721 Bytes

Versions: 14

Compression:

Stored size: 721 Bytes

Contents

# cd playground
# be ruby sand.rb

require 'pry-moves'
require './tracer.rb'


def fi(param)
  a = 2 + 1
  puts param
end

class Sand

  def initialize
    puts :xuilo
  end

  def some_logic
    puts 'aa: step 1'
    puts 'aa: step 2'
  end

  def method_with_hidden_stack
    debug_redirect = :aa
    hide_from_stack = true
    puts 'bb: step 1'
    puts 'bb: step 2'
    some_logic
  end

  def debugged_method
    koko = :love
    debug
    method_with_hidden_stack
    (2..4).each do |i|
      puts i
    end
    puts :two
  end
  alias debugged_method_alias debugged_method

end

puts :prepare

Sand.new.method_with_hidden_stack


bb = 1

exit

pp = 123 if debucher?
binding.pry if debucher?

binding.pry

puts :ok

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
pry-moves-1.0.15 playground/sand.rb
pry-moves-1.0.14 playground/sand.rb
pry-moves-1.0.13 playground/sand.rb
pry-moves-1.0.12 playground/sand.rb
pry-moves-1.0.11 playground/sand.rb
pry-moves-1.0.10 playground/sand.rb
pry-moves-1.0.9 playground/sand.rb
pry-moves-1.0.8 playground/sand.rb
pry-moves-1.0.7 playground/sand.rb
pry-moves-1.0.6 playground/sand.rb
pry-moves-1.0.5 playground/sand.rb
pry-moves-1.0.4 playground/sand.rb
pry-moves-1.0.3 playground/sand.rb
pry-moves-1.0.2 playground/sand.rb