mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC] update target_thread to TracePoint#enable
This commit is contained in:
parent
8640153e59
commit
c5eb24349a
1 changed files with 6 additions and 5 deletions
11
prelude.rb
11
prelude.rb
|
@ -134,8 +134,8 @@ end
|
||||||
|
|
||||||
class TracePoint
|
class TracePoint
|
||||||
# call-seq:
|
# call-seq:
|
||||||
# trace.enable(target: nil, target_line: nil) -> true or false
|
# trace.enable(target: nil, target_line: nil, target_thread: nil) -> true or false
|
||||||
# trace.enable(target: nil, target_line: nil) { block } -> obj
|
# trace.enable(target: nil, target_line: nil, target_thread: nil) { block } -> obj
|
||||||
#
|
#
|
||||||
# Activates the trace.
|
# Activates the trace.
|
||||||
#
|
#
|
||||||
|
@ -163,9 +163,10 @@ class TracePoint
|
||||||
# trace.enabled?
|
# trace.enabled?
|
||||||
# #=> false
|
# #=> false
|
||||||
#
|
#
|
||||||
# <i>target</i> and <i>target_line</i> parameters are used to limit tracing
|
# +target+, +target_line+ and +target_thread+ parameters are used to
|
||||||
# only to specified code objects. <i>target</i> should be a code object for
|
# limit tracing only to specified code objects. +target+ should be a
|
||||||
# which RubyVM::InstructionSequence.of will return an instruction sequence.
|
# code object for which RubyVM::InstructionSequence.of will return
|
||||||
|
# an instruction sequence.
|
||||||
#
|
#
|
||||||
# t = TracePoint.new(:line) { |tp| p tp }
|
# t = TracePoint.new(:line) { |tp| p tp }
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue