PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
TracePoint
U:RDoc::AnyMethod[iI"new:ETI"TracePoint::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"=Returns a new TracePoint object, not enabled by default.;To:RDoc::Markup::BlankLine o; ; [I">To activate the TracePoint object, use TracePoint#enable:;T@o:RDoc::Markup::Verbatim; [I"+trace = TracePoint.new(:call) do |tp| ;TI"? p [tp.lineno, tp.defined_class, tp.method_id, tp.event] ;TI" end ;TI" #=> #<TracePoint:disabled> ;TI" ;TI"trace.enable #=> false ;TI" ;TI"puts "Hello, TracePoint!" ;TI"# ... ;TI"=# [48, IRB::Notifier::AbstractNotifier, :printf, :call] ;TI"# ... ;T:@format0o; ; [I"5To deactivate the trace, use TracePoint#disable.;T@o;; [I"trace.disable ;T; 0o; ; [I"DSee TracePoint@Events for possible events and more information.;T@o; ; [I"BA block must be given; otherwise, an ArgumentError is raised.;T@o; ; [I"FIf the trace method isn't included in the given events filter, a ;TI"RuntimeError is raised.;T@o;; [ I"%TracePoint.trace(:line) do |tp| ;TI" p tp.raised_exception ;TI" end ;TI"F#=> RuntimeError: 'raised_exception' not supported by this event ;T; 0o; ; [I"MIf the trace method is called outside a block, a RuntimeError is raised.;T@o;; [ I"%TracePoint.trace(:line) do |tp| ;TI" $tp = tp ;TI" end ;TI"7$tp.lineno #=> access from outside (RuntimeError) ;T; 0o; ; [I"1Access from other threads is also forbidden.;T: @fileI"trace_point.rb;T:0@omit_headings_from_table_of_contents_below0I"2TracePoint.new(*events) { |tp| block } -> tp ;T0[ I"(*events);T@AFI"TracePoint;TcRDoc::NormalClass00
[-] disable-i.ri
[edit]
[-] raised_exception-i.ri
[edit]
[-] allow_reentry-c.ri
[edit]
[-] self-i.ri
[edit]
[-] event-i.ri
[edit]
[-] lineno-i.ri
[edit]
[-] new-c.ri
[edit]
[-] method_id-i.ri
[edit]
[-] cdesc-TracePoint.ri
[edit]
[-] instruction_sequence-i.ri
[edit]
[-] trace-c.ri
[edit]
[-] defined_class-i.ri
[edit]
[-] path-i.ri
[edit]
[-] enabled%3f-i.ri
[edit]
[-] callee_id-i.ri
[edit]
[+]
..
[-] enable-i.ri
[edit]
[-] return_value-i.ri
[edit]
[-] inspect-i.ri
[edit]
[-] binding-i.ri
[edit]
[-] eval_script-i.ri
[edit]
[-] parameters-i.ri
[edit]
[-] stat-c.ri
[edit]