Sha256: 7b77275e2b835a2621b9469e59ebb0057bbcb4a388b4f71724bfc940dc4ced29

Contents?: true

Size: 1.3 KB

Versions: 27

Compression:

Stored size: 1.3 KB

Contents

if @command[:action] == :ababa
  puts 'catch debug'


  set_trace_func (
                     Proc.new { |event, file, line, id, binding_, classname|
                       #if file == '(pry)'
                       #unless file.match /\/gems\/|\/ruby\//
                       printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname
                       if event=='line' and file == 'sand.rb' and line != 47
                         set_trace_func nil
                         Pry.start(binding_, @pry_start_options)
                       end
                     })

  puts "CALLER:\n#{caller.join "\n"}\n"

  #Pry.start(command[:binding], @pry_start_options)
  return return_value
end

TracePoint.new(:line) {|tp|p [tp.lineno, tp.event]}.enable

set_trace_func proc { |event, file, line, id, binding, classname|
                 printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname
               }


set_trace_func proc { |event, file, line, id, binding, classname|
                 printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname	unless file.match /\/gems\/|\/ruby\//
               }


set_trace_func proc { |event, file, line, id, binding, classname|
                 printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname if file == '(pry)'
               }






Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
pry-moves-1.0.15 dynamic_debug_experiments.rb
pry-moves-1.0.14 dynamic_debug_experiments.rb
pry-moves-1.0.13 dynamic_debug_experiments.rb
pry-moves-1.0.12 dynamic_debug_experiments.rb
pry-moves-1.0.11 dynamic_debug_experiments.rb
pry-moves-1.0.10 dynamic_debug_experiments.rb
pry-moves-1.0.9 dynamic_debug_experiments.rb
pry-moves-1.0.8 dynamic_debug_experiments.rb
pry-moves-1.0.7 dynamic_debug_experiments.rb
pry-moves-1.0.6 dynamic_debug_experiments.rb
pry-moves-1.0.5 dynamic_debug_experiments.rb
pry-moves-1.0.4 dynamic_debug_experiments.rb
pry-moves-1.0.3 dynamic_debug_experiments.rb
pry-moves-1.0.2 dynamic_debug_experiments.rb
pry-moves-1.0.1 dynamic_debug_experiments.rb
pry-moves-1.0.0 dynamic_debug_experiments.rb
pry-moves-0.1.13 dynamic_debug_experiments.rb
pry-moves-0.1.12 dynamic_debug_experiments.rb
pry-moves-0.1.10 dynamic_debug_experiments.rb
pry-moves-0.1.9 dynamic_debug_experiments.rb