Project

General

Profile

Actions

Bug #15634

closed

TracePoint seems to be skipping some methods.

Added by ioquatix (Samuel Williams) over 2 years ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:91659]

Description

trace_point = TracePoint.new(:call, :return, :line, :c_call, :c_return, :b_call, :b_return) do |trace|
    puts [trace.path, trace.lineno].join(":")
end

trace_point.enable

values = {foo: 10}

def shell_escape(x)
    x
end

values.map{|key, value| [
    key.to_s.upcase,
    shell_escape(value) # TracePoint is never triggered for this line.
]}

Related issues

Related to Ruby master - Bug #14889: TracePoint for :line never seems to trigger on argument list. Maybe by design?ClosedActions
Actions

Also available in: Atom PDF