40件ヒット
[1-40件を表示]
(0.019秒)
トップページ >
:TracePoint#disable

![条件を削除 [x]](/images/drop-condition-icon.png)
種類
- インスタンスメソッド (30)
- 特異メソッド (6)
- 文書 (4)
ライブラリ
- ビルトイン (36)
クラス
- TracePoint (36)
キーワード
-
NEWS for Ruby 2
. 3 . 0 (4) - disable (12)
- enable (12)
- enabled? (6)
- new (6)
検索結果
先頭5件
-
TracePoint
# disable -> bool (62138.0) -
self のトレースを無効にします。
...行前の TracePoint#enabled? を返します。(トレースが既に有効であっ
た場合は true を返します。そうでなければ false を返します)
trace.enabled? # => true
trace.disable # => false (実行前の状態)
trace.enabled? # => false
trace.disable # => false......のみトレースが無効になります。
この場合はブロックの評価結果を返します。
trace.enabled? # => true
trace.disable do
trace.enabled? # => false
end
trace.enabled? # => true
[注意] イベントフックのためのメソッドに、ブロックの......外側で参照した場合は
RuntimeError が発生する事に注意してください。
trace.enable { p trace.lineno }
# => RuntimeError: access from outside
@see TracePoint#enable, TracePoint#enabled?... -
TracePoint
# disable { . . . } -> object (62138.0) -
self のトレースを無効にします。
...行前の TracePoint#enabled? を返します。(トレースが既に有効であっ
た場合は true を返します。そうでなければ false を返します)
trace.enabled? # => true
trace.disable # => false (実行前の状態)
trace.enabled? # => false
trace.disable # => false......のみトレースが無効になります。
この場合はブロックの評価結果を返します。
trace.enabled? # => true
trace.disable do
trace.enabled? # => false
end
trace.enabled? # => true
[注意] イベントフックのためのメソッドに、ブロックの......外側で参照した場合は
RuntimeError が発生する事に注意してください。
trace.enable { p trace.lineno }
# => RuntimeError: access from outside
@see TracePoint#enable, TracePoint#enabled?... -
TracePoint
. new(*events) {|obj| . . . } -> TracePoint (21187.0) -
新しい TracePoint オブジェクトを作成して返します。トレースを有効 にするには TracePoint#enable を実行してください。
...新しい TracePoint オブジェクトを作成して返します。トレースを有効
にするには TracePoint#enable を実行してください。
例:irb で実行した場合
trace = TracePoint.new(:call) do |tp|
p [tp.lineno, tp.defined_class, tp.method_id, tp.event]
end
#......372cdb20>
trace.enable
# => false
puts "Hello, TracePoint!"
# ...
# [69, IRB::Notifier::AbstractNotifier, :printf, :call]
# ...
トレースを無効にするには TracePoint#disable を実行してください。
trace.disable
@param events トレースするイベントを Stri......終了。
指定イベントに関連しない情報を取得するメソッドを実行した場合には
RuntimeError が発生します。
TracePoint.trace(:line) do |tp|
p tp.raised_exception
end
# => RuntimeError: 'raised_exception' not supported by this event
イベントフッ......替え。
指定イベントに関連しない情報を取得するメソッドを実行した場合には
RuntimeError が発生します。
TracePoint.trace(:line) do |tp|
p tp.raised_exception
end
# => RuntimeError: 'raised_exception' not supported by this event
イベントフッ... -
TracePoint
# enable -> bool (21030.0) -
self のトレースを有効にします。
...self のトレースを有効にします。
実行前の TracePoint#enabled? を返します。(トレースが既に有効であっ
た場合は true を返します。そうでなければ false を返します)
trace.enabled? # => false
trace.enable # => false (実行前の状態)......# => false
[注意] イベントフックのためのメソッドにブロックの外側で参照した場合は
RuntimeError が発生する事に注意してください。
trace.enable { p trace.lineno }
# => RuntimeError: access from outside
@see TracePoint#disable, TracePoint#enabled?... -
TracePoint
# enable { . . . } -> object (21030.0) -
self のトレースを有効にします。
...self のトレースを有効にします。
実行前の TracePoint#enabled? を返します。(トレースが既に有効であっ
た場合は true を返します。そうでなければ false を返します)
trace.enabled? # => false
trace.enable # => false (実行前の状態)......# => false
[注意] イベントフックのためのメソッドにブロックの外側で参照した場合は
RuntimeError が発生する事に注意してください。
trace.enable { p trace.lineno }
# => RuntimeError: access from outside
@see TracePoint#disable, TracePoint#enabled?... -
TracePoint
# enabled? -> bool (21024.0) -
self のトレースが有効な場合に true を、そうでない場合に false を返しま す。
...self のトレースが有効な場合に true を、そうでない場合に false を返しま
す。
@see TracePoint#enable, TracePoint#disable... -
NEWS for Ruby 2
. 3 . 0 (12.0) -
NEWS for Ruby 2.3.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...:
* 実験的な機能として fronzen-string-literal というプラグマが導入されました。
8976
* さらに --enable/--disable=frozen-string-literal というコマンドラインオプションも導入されました
8976
* コマンドラインオプション......oc#call ( Proc#[] , Proc#===, Proc#yield) は最適化されました。
Backtrace doesn't show each method (show block lines directly).
TracePoint also ignores these calls.
11569
* Queue (Thread::Queue)
* 終了を通知するために Queue#close(Thread::Queue#close) を...