⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
TracePoint
/
Edit File: new-c.ri
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"INext, in order to activate the trace, you must use TracePoint#enable;T@o:RDoc::Markup::Verbatim; [I"+trace = TracePoint.new(:call) do |tp| ;TI"A p [tp.lineno, tp.defined_class, tp.method_id, tp.event] ;TI" end ;TI" #=> #<TracePoint:disabled> ;TI" ;TI"trace.enable ;TI"#=> false ;TI" ;TI"puts "Hello, TracePoint!" ;TI"# ... ;TI"=# [48, IRB::Notifier::AbstractNotifier, :printf, :call] ;TI"# ... ;T:@format0o; ; [I"KWhen you want to deactivate the trace, you must use TracePoint#disable;T@o;; [I"trace.disable ;T; 0o; ; [I"DSee TracePoint@Events for possible events and more information.;T@o; ; [I"AA 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"KIf the trace method is called outside 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"<TracePoint.new(*events) { |obj| block } -> obj ;T0[ I"(*events);T@BFI"TracePoint;TcRDoc::NormalClass00
Simpan