618件ヒット
[1-100件を表示]
(0.122秒)
ライブラリ
- ビルトイン (397)
-
irb
/ context (22) -
irb
/ ext / tracer (33) -
irb
/ frame (11) - matrix (22)
-
minitest
/ unit (1) -
net
/ http (11) - optparse (11)
- rake (11)
-
rubygems
/ config _ file (22) - tracer (66)
-
webrick
/ httpresponse (11)
クラス
- Exception (33)
- Fiber (5)
-
Gem
:: ConfigFile (22) -
IRB
:: Context (55) -
IRB
:: Frame (11) - Matrix (22)
-
Net
:: HTTP (11) -
OptionParser
:: ParseError (11) -
Rake
:: Application (11) -
RubyVM
:: InstructionSequence (33) - Thread (55)
-
Thread
:: Backtrace :: Location (77) - TracePoint (194)
- Tracer (66)
-
WEBrick
:: HTTPResponse (11)
モジュール
キーワード
-
absolute
_ path (11) -
add
_ filter (11) -
back
_ trace _ limit (11) -
back
_ trace _ limit= (11) - backtrace (33)
- backtrace= (11)
-
backtrace
_ locations (33) -
base
_ label (11) - binding (11)
-
callee
_ id (11) -
defined
_ class (11) - disable (22)
- disasm (11)
- disassemble (11)
- enable (22)
- enabled? (11)
-
eval
_ script (6) - event (11)
-
get
_ line (11) -
get
_ thread _ no (11) - inspect (22)
-
instruction
_ sequence (6) - label (11)
- lineno (22)
-
method
_ id (11) - parameters (6)
- path (22)
- raise (16)
-
raised
_ exception (11) -
return
_ value (11) - self (11)
-
set
_ backtrace (22) -
set
_ error (11) -
set
_ get _ line _ procs (11) -
set
_ trace _ func (11) - skip (1)
- stdout (11)
-
to
_ a (11) -
to
_ s (11) - tr (11)
-
trace
_ func (22) -
use
_ tracer (11) -
use
_ tracer= (11) -
use
_ tracer? (11)
検索結果
先頭5件
-
IRB
:: Context # back _ trace _ limit=(val) (32214.0) -
エラー発生時のバックトレース表示の先頭、末尾の上限の行数をそれぞれ val 行に設定します。
...ぞれ val
行に設定します。
.irbrc ファイル中で IRB.conf[:BACK_TRACE_LIMIT] を設定する事でも同様の
操作が行えます。
@param val バックトレース表示の先頭、末尾の上限を Integer で指定
します。
@see IRB::Context#back_trace_limit... -
IRB
:: Context # back _ trace _ limit -> Integer (32208.0) -
エラー発生時のバックトレース表示の先頭、末尾の上限の行数を返します。
...エラー発生時のバックトレース表示の先頭、末尾の上限の行数を返します。
デフォルト値は 16 です。
@see IRB::Context#back_trace_limit=... -
IRB
:: Frame # trace _ func(event , file , line , id , binding) -> Binding (29202.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
IRB
:: Context # use _ tracer -> bool (29101.0) -
irb への入力を評価する時に tracer が有効かどうかを返します。
...
irb への入力を評価する時に tracer が有効かどうかを返します。
@see tracer, IRB::Context#use_tracer=... -
IRB
:: Context # use _ tracer=(val) (29101.0) -
irb への入力を評価する時に tracer が有効にするかどうかを val で 指定します。
...
irb への入力を評価する時に tracer が有効にするかどうかを val で
指定します。
.irbrc ファイル中で IRB.conf[:USE_TRACER] を設定する事でも同様の事が行
えます。
@param val tracer を有効にする場合に true を指定します。
@see tracer,......IRB::Context#use_tracer... -
IRB
:: Context # use _ tracer? -> bool (29101.0) -
irb への入力を評価する時に tracer が有効かどうかを返します。
...
irb への入力を評価する時に tracer が有効かどうかを返します。
@see tracer, IRB::Context#use_tracer=... -
TracePoint
# binding -> Binding (18413.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 (18413.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
...れた Binding オブジェクトを返します。
C で記述されたメソッドは binding を生成しないため、
:c_call および :c_return イベントに対しては nil を返すことに注意してください。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:......call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}... -
Matrix
# trace -> Integer | Float | Rational | Complex (18236.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
Net
:: HTTP # trace(path , initheader = nil) -> Net :: HTTPResponse (18224.0) -
サーバの path に TRACE リクエストを ヘッダを initheader として送ります。
...サーバの path に TRACE リクエストを
ヘッダを initheader として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを「......文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Trace... -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (15401.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...ception#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check_long_month(month)
return if D......aise "#{month} is not long month"
end
def get_exception
return begin
yield
rescue => e
e
end
end
e = get_exception { check_long_month(2) }
p e.backtrace_locations
# => ["test.rb:4:in `check_long_month'", "test.rb:15:in `block in <main>'", "test.rb:9:in `get_exception'", "test.rb:15:i......n `<main>'"]
//}
@see Exception#backtrace...