306件ヒット
[301-306件を表示]
(0.090秒)
別のキーワード
ライブラリ
- ビルトイン (306)
キーワード
- [] (12)
-
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) -
add
_ trace _ func (12) - alive? (12)
- backtrace (12)
-
backtrace
_ locations (24) - fetch (8)
-
ignore
_ deadlock (4) -
ignore
_ deadlock= (4) - inspect (12)
- key? (12)
- keys (12)
-
pending
_ interrupt? (12) - priority (12)
- priority= (12)
- raise (12)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9) -
set
_ trace _ func (12) - status (12)
- stop? (12)
-
thread
_ variable? (12) -
thread
_ variable _ get (12) -
thread
_ variable _ set (12) -
to
_ s (8) - value (12)
検索結果
-
Thread
# add _ trace _ func(pr) -> Proc (8008.0) -
スレッドにトレース用ハンドラを追加します。
...][ruby]{
th = Thread.new do
class Trace
end
43.to_s
end
th.add_trace_func lambda {|*arg| p arg }
th.join
# => ["line", "example.rb", 4, nil, #<Binding:0x00007f98e107d0d8>, nil]
# => ["c-call", "example.rb", 4, :inherited, #<Binding:0x00007f98e1087448>, Class]
# => ["c-return", "example.rb", 4......#<Binding:0x00007f98e1085d00>, Class]
# => ["class", "example.rb", 4, nil, #<Binding:0x00007f98e108f210>, nil]
# => ["end", "example.rb", 5, nil, #<Binding:0x00007f98e108e5e0>, nil]
# => ["line", "example.rb", 6, nil, #<Binding:0x00007f98e108d4b0>, nil]
# => ["c-call", "example.rb", 6, :to_s, #<Bin......ding:0x00007f98e1097aa0>, Integer]
# => ["c-return", "example.rb", 6, :to_s, #<Binding:0x00007f98e1095cc8>, Integer]
//}
@see Thread#set_trace_func Kernel.#set_trace_func...