374件ヒット
[1-100件を表示]
(0.098秒)
別のキーワード
ライブラリ
- ビルトイン (241)
-
irb
/ context (12) -
irb
/ frame (12) - matrix (24)
-
minitest
/ unit (1) - optparse (12)
-
rubygems
/ config _ file (24) - tracer (48)
クラス
- Exception (24)
- Fiber (6)
-
Gem
:: ConfigFile (24) -
IRB
:: Context (12) -
IRB
:: Frame (12) - Matrix (24)
-
OptionParser
:: ParseError (12) -
RubyVM
:: InstructionSequence (24) - Thread (48)
-
Thread
:: Backtrace :: Location (84) - TracePoint (55)
- Tracer (48)
モジュール
キーワード
-
absolute
_ path (12) -
back
_ trace _ limit (12) - backtrace (36)
- backtrace= (12)
-
backtrace
_ locations (24) -
base
_ label (12) - binding (12)
- disasm (12)
- disassemble (12)
-
eval
_ script (7) -
get
_ line (12) -
get
_ thread _ no (12) - inspect (24)
- label (12)
- lineno (24)
- path (24)
- raise (18)
-
set
_ backtrace (24) -
set
_ get _ line _ procs (12) - skip (1)
-
to
_ s (12) - tr (12)
-
trace
_ func (24)
検索結果
先頭5件
-
Matrix
# trace -> Integer | Float | Rational | Complex (15236.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
TracePoint
# binding -> Binding (9213.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
...発生したイベントによって生成された Binding オブジェクトを返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}... -
TracePoint
# binding -> Binding | nil (9213.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
...た Binding オブジェクトを返します。
C で記述されたメソッドは binding を生成しないため、
:c_call および :c_return イベントに対しては nil を返すことに注意してください。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:cal......l) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}... -
Tracer
# trace _ func(event , file , line , id , binding , klass , *) -> object | nil (9202.0) -
@todo
@todo -
Gem
:: ConfigFile # backtrace=(backtrace) (9201.0) -
エラー発生時にバックトレースを出力するかどうか設定します。
...エラー発生時にバックトレースを出力するかどうか設定します。
@param backtrace 真を指定するとエラー発生時にバックトレースを出力するようになります。... -
Tracer
# get _ thread _ no -> Integer (9201.0) -
@todo
@todo -
Gem
:: ConfigFile # backtrace -> bool (9101.0) -
エラー発生時にバックトレースを出力するかどうかを返します。
エラー発生時にバックトレースを出力するかどうかを返します。
真の場合はバックトレースを出力します。そうでない場合はバックトレースを出力しません。 -
Tracer
# get _ line(file , line) -> String (9101.0) -
@todo
@todo
@param file
@param line -
Tracer
# set _ get _ line _ procs(file , p = proc) (9101.0) -
@todo
@todo -
Thread
# backtrace _ locations(range) -> [Thread :: Backtrace :: Location] | nil (6301.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...ースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレー......m range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.run
thread.backtrace_loc......ations # => ["/path/to/test.rb:1:in `sleep'", "/path/to/test.rb:1:in `block in <main>'"]
//}
@see Thread::Backtrace::Location...