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