mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
TracePoint#enable(target_line:)
is supported. [Feature #15289]
* vm_trace.c: `TracePoint#enable(target_line:)` is supported. This option enables a hook only at specified target_line. target_line should be combination with target and :line event. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6e33c16ffd
commit
72e60a0437
6 changed files with 77 additions and 20 deletions
|
@ -133,8 +133,8 @@ class IO
|
|||
end
|
||||
|
||||
class TracePoint
|
||||
def enable target: nil, &blk
|
||||
self.__enable target, &blk
|
||||
def enable target: nil, target_line: nil, &blk
|
||||
self.__enable target, target_line, &blk
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue