trace_points -> [[Integer, Symbol]]Ruby 2.5.0 から[permalink][rdoc][edit]() → Array[untyped]-
selfが表す命令シーケンス内のトレースポイント(イベントが発生しうる位置)の一覧を返します。配列の要素は
例[行番号, イベントを表す Symbol]という 2 要素の配列です。イベントを表す Symbol は:class、:call、:b_call、:line、:end、:return、:b_returnのいずれかです。iseq = RubyVM::InstructionSequence.compile(<<~RUBY) def hello puts "hi" end RUBY p iseq.trace_points # => [[1, :line]]