Project

General

Profile

Bug #13392 » tracepoint_bug.rb

areman01 (André Kullmann), 03/31/2017 08:26 PM

 
if RUBY_ENGINE == 'jruby'
puts "#{RUBY_ENGINE}-#{JRUBY_VERSION} (ruby-#{RUBY_VERSION} java-#{java.lang.System.get_property('java.version')})"
else
puts "#{RUBY_ENGINE}-#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} (#{RUBY_PLATFORM})"
end

require File.expand_path('../tracepoint_bug_ext.rb', __FILE__ )

TracePoint.new(:call,:return,:c_call,:c_return) do |trace_point|
puts "#{trace_point.path}:#{trace_point.lineno} #{trace_point.event} #{trace_point.method_id}"
end.enable do
0.to_s
end
(1-1/2)