Project

General

Profile

Actions

Bug #15634

closed

TracePoint seems to be skipping some methods.

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

Status:
Closed
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 1 (0 open1 closed)

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

Like0
Like0Like0Like0Like0Like0Like0