736件ヒット
[1-100件を表示]
(0.128秒)
ライブラリ
- ビルトイン (459)
-
irb
/ context (24) -
irb
/ ext / tracer (36) -
irb
/ frame (12) - matrix (24)
-
minitest
/ unit (1) -
net
/ http (12) - optparse (12)
- rake (12)
-
rubygems
/ config _ file (24) - tracer (108)
-
webrick
/ httpresponse (12)
クラス
- Exception (36)
- Fiber (6)
-
Gem
:: ConfigFile (24) -
IRB
:: Context (60) -
IRB
:: Frame (12) - Matrix (24)
-
Net
:: HTTP (12) - Object (12)
-
OptionParser
:: ParseError (12) -
Rake
:: Application (12) -
RubyVM
:: InstructionSequence (36) - Thread (72)
-
Thread
:: Backtrace :: Location (84) - TracePoint (213)
- Tracer (108)
-
WEBrick
:: HTTPResponse (12)
モジュール
キーワード
-
absolute
_ path (12) -
add
_ filter (12) -
add
_ trace _ func (12) -
back
_ trace _ limit (12) -
back
_ trace _ limit= (12) - backtrace (36)
- backtrace= (12)
-
backtrace
_ locations (36) -
base
_ label (12) - binding (12)
-
callee
_ id (12) -
defined
_ class (12) - disable (24)
- disasm (12)
- disassemble (12)
- enable (24)
- enabled? (12)
-
eval
_ script (7) - event (12)
- freeze (12)
-
get
_ line (12) -
get
_ thread _ no (12) - inspect (24)
-
instruction
_ sequence (7) - label (12)
- lineno (24)
-
method
_ id (12) - off (12)
- on (24)
- parameters (7)
- path (24)
- raise (18)
-
raised
_ exception (12) -
return
_ value (12) - self (12)
-
set
_ backtrace (24) -
set
_ error (12) -
set
_ get _ line _ procs (12) -
set
_ trace _ func (12) - skip (1)
- stdout (12)
-
to
_ a (12) -
to
_ s (12) - tr (12)
-
trace
_ func (24) -
use
_ tracer (12) -
use
_ tracer= (12) -
use
_ tracer? (12)
検索結果
先頭5件
-
Net
:: HTTP # trace(path , initheader = nil) -> Net :: HTTPResponse (24224.0) -
サーバの path に TRACE リクエストを ヘッダを initheader として送ります。
...サーバの path に TRACE リクエストを
ヘッダを initheader として送ります。
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを「......文字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Trace... -
Matrix
# trace -> Integer | Float | Rational | Complex (21236.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (18601.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...on#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check_long_month(month)
return if Date.n......w(2000, month, -1).day == 31
raise "#{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:in `<main>'"]
//}
@see Exception#backtrace... -
Gem
:: ConfigFile # backtrace=(backtrace) (18601.0) -
エラー発生時にバックトレースを出力するかどうか設定します。
...エラー発生時にバックトレースを出力するかどうか設定します。
@param backtrace 真を指定するとエラー発生時にバックトレースを出力するようになります。... -
IRB
:: Context # back _ trace _ limit=(val) (18314.0) -
エラー発生時のバックトレース表示の先頭、末尾の上限の行数をそれぞれ val 行に設定します。
...ぞれ val
行に設定します。
.irbrc ファイル中で IRB.conf[:BACK_TRACE_LIMIT] を設定する事でも同様の
操作が行えます。
@param val バックトレース表示の先頭、末尾の上限を Integer で指定
します。
@see IRB::Context#back_trace_limit... -
IRB
:: Context # back _ trace _ limit -> Integer (18308.0) -
エラー発生時のバックトレース表示の先頭、末尾の上限の行数を返します。
...エラー発生時のバックトレース表示の先頭、末尾の上限の行数を返します。
デフォルト値は 16 です。
@see IRB::Context#back_trace_limit=... -
Exception
# backtrace -> [String] (18301.0) -
バックトレース情報を返します。
...)
* "#{sourcefile}:#{sourceline}"
(トップレベルの場合)
という形式の String の配列です。
//emlist[例][ruby]{
def methd
raise
end
begin
methd
rescue => e
p e.backtrace
end
#=> ["filename.rb:2:in `methd'", "filename.rb:6"]
//}
@see Exception#backtrace_locations... -
Exception
# set _ backtrace(errinfo) -> nil | String | [String] (18301.0) -
バックトレース情報に errinfo を設定し、設定されたバックトレース 情報を返します。
...@param errinfo nil、String あるいは String の配列のいずれかを指定します。
//emlist[例][ruby]{
begin
begin
raise "inner"
rescue
raise "outer"
end
rescue
$!.backtrace # => ["/path/to/test.rb:5:in `rescue in <main>'", "/path/to/test.rb:2:in `<main>'"]
$!.set_back......trace(["dummy1", "dummy2"])
$!.backtrace # => ["dummy1", "dummy2"]
end
//}... -
Gem
:: ConfigFile # backtrace -> bool (18301.0) -
エラー発生時にバックトレースを出力するかどうかを返します。
エラー発生時にバックトレースを出力するかどうかを返します。
真の場合はバックトレースを出力します。そうでない場合はバックトレースを出力しません。