別のキーワード
ライブラリ
- English (12)
- ビルトイン (306)
-
minitest
/ unit (2) - optparse (24)
- rake (24)
-
rubygems
/ commands / which _ command (12) -
rubygems
/ config _ file (36) -
webrick
/ httpresponse (12)
クラス
- Exception (48)
- Fiber (18)
-
Gem
:: ConfigFile (36) -
OptionParser
:: ParseError (24) -
Rake
:: Application (12) - Thread (36)
-
Thread
:: Backtrace :: Location (84) -
WEBrick
:: HTTPResponse (12)
モジュール
- Kernel (120)
- MiniTest (1)
-
MiniTest
:: Assertions (1) - Rake (12)
キーワード
-
$ @ (12) -
$ ERROR _ INFO (12) - == (12)
-
DEFAULT
_ BACKTRACE (12) - Location (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Rubyの起動 (4)
- Ruby用語集 (12)
- WhichCommand (12)
-
absolute
_ path (12) - application= (12)
- backtrace= (12)
-
backtrace
_ locations (36) -
base
_ label (12) -
caller
_ locations (24) - fail (36)
-
filter
_ backtrace (13) -
get
_ backtrace (12) - inspect (12)
- label (12)
- lineno (12)
-
make
_ backtrace (12) - path (12)
- raise (54)
-
rb
_ backtrace (12) - rubygems (12)
-
rubygems
/ commands / build _ command (12) -
rubygems
/ commands / cert _ command (12) -
rubygems
/ commands / check _ command (12) -
rubygems
/ commands / cleanup _ command (12) -
rubygems
/ commands / contents _ command (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ commands / environment _ command (12) -
rubygems
/ commands / fetch _ command (12) -
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ commands / help _ command (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ commands / list _ command (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / mirror _ command (12) -
rubygems
/ commands / outdated _ command (12) -
rubygems
/ commands / pristine _ command (12) -
rubygems
/ commands / query _ command (12) -
rubygems
/ commands / rdoc _ command (12) -
rubygems
/ commands / search _ command (12) -
rubygems
/ commands / server _ command (12) -
rubygems
/ commands / sources _ command (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ commands / uninstall _ command (12) -
rubygems
/ commands / unpack _ command (12) -
set
_ backtrace (36) -
set
_ error (12) - skip (1)
-
to
_ s (12)
検索結果
先頭5件
-
static VALUE backtrace(int lev) (38100.0)
-
-
Exception
# backtrace -> [String] (18113.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... -
Thread
# backtrace -> [String] | nil (18113.0) -
スレッドの現在のバックトレースを返します。
...def m1
sleep 5
end
def m2
m1
end
end
th = Thread.new {C1.new.m2; Thread.stop}
th.backtrace
# => [
# [0] "(irb):3:in `sleep'",
# [1] "(irb):3:in `m1'",
# [2] "(irb):6:in `m2'",
# [3] "(irb):10:in `block in irb_binding'"
# ]
th.kill
th.backtrace # => nil
//}... -
Gem
:: ConfigFile # backtrace -> bool (18101.0) -
エラー発生時にバックトレースを出力するかどうかを返します。
エラー発生時にバックトレースを出力するかどうかを返します。
真の場合はバックトレースを出力します。そうでない場合はバックトレースを出力しません。 -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (6252.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...バックトレース情報を返します。Exception#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require......et_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... -
Thread
# backtrace _ locations(range) -> [Thread :: Backtrace :: Location] | nil (6232.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...スレッドの現在のバックトレースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します......似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.run
thread.backtrace_locations # => ["/path/to/test.rb:1:in `sleep'", "/path/to/test.rb:1:in `block in <main>'"]
//}
@see Thread::Backtrace::Location... -
Thread
# backtrace _ locations(start = 0 , length = nil) -> [Thread :: Backtrace :: Location] | nil (6232.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...スレッドの現在のバックトレースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します......似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.run
thread.backtrace_locations # => ["/path/to/test.rb:1:in `sleep'", "/path/to/test.rb:1:in `block in <main>'"]
//}
@see Thread::Backtrace::Location... -
Gem
:: ConfigFile # backtrace=(backtrace) (6208.0) -
エラー発生時にバックトレースを出力するかどうか設定します。
...エラー発生時にバックトレースを出力するかどうか設定します。
@param backtrace 真を指定するとエラー発生時にバックトレースを出力するようになります。... -
MiniTest
. filter _ backtrace(backtrace) -> Array (6208.0) -
バックトレースからこのライブラリに関する部分を取り除いた結果を返します。
...バックトレースからこのライブラリに関する部分を取り除いた結果を返します。
@param backtrace バックトレースを指定します。... -
Exception
# set _ backtrace(errinfo) -> nil | String | [String] (6119.0) -
バックトレース情報に errinfo を設定し、設定されたバックトレース 情報を返します。
...定します。
//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_backtrace(["dummy1", "dummy2"])
$!.backtrace # => ["dummy1", "dummy2"]
end
//}...