789件ヒット
[1-100件を表示]
(0.085秒)
ライブラリ
- ビルトイン (282)
-
minitest
/ unit (2) - optparse (24)
- rake (24)
-
rubygems
/ commands / which _ command (12) -
rubygems
/ config _ file (36) -
webrick
/ httpresponse (12)
クラス
- Exception (36)
- Fiber (18)
-
Gem
:: ConfigFile (36) -
OptionParser
:: ParseError (24) -
Rake
:: Application (12) - Thread (36)
-
Thread
:: Backtrace :: Location (84) -
WEBrick
:: HTTPResponse (12)
モジュール
- Kernel (96)
- MiniTest (1)
-
MiniTest
:: Assertions (1) - Rake (12)
キーワード
-
DEFAULT
_ BACKTRACE (12) - Location (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
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) (50200.0)
-
-
Exception
# backtrace -> [String] (30313.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... -
Gem
:: ConfigFile # backtrace -> bool (30301.0) -
エラー発生時にバックトレースを出力するかどうかを返します。
エラー発生時にバックトレースを出力するかどうかを返します。
真の場合はバックトレースを出力します。そうでない場合はバックトレースを出力しません。 -
Thread
# backtrace -> [String] | nil (27313.0) -
スレッドの現在のバックトレースを返します。
...]{
class C1
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 #... -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (18652.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...ion#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check_long_month(month)
return if Date.......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) (18608.0) -
エラー発生時にバックトレースを出力するかどうか設定します。
...エラー発生時にバックトレースを出力するかどうか設定します。
@param backtrace 真を指定するとエラー発生時にバックトレースを出力するようになります。... -
MiniTest
. filter _ backtrace(backtrace) -> Array (18608.0) -
バックトレースからこのライブラリに関する部分を取り除いた結果を返します。
...バックトレースからこのライブラリに関する部分を取り除いた結果を返します。
@param backtrace バックトレースを指定します。... -
Exception
# set _ backtrace(errinfo) -> nil | String | [String] (18319.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
//}... -
OptionParser
:: ParseError # set _ backtrace(array) -> [String] (18301.0) -
自身に array で指定したバックトレースを設定します。
...自身に array で指定したバックトレースを設定します。
@param array バックトレースを文字列の配列で指定します。
@return array を返します。... -
OptionParser
:: ParseError . filter _ backtrace(array) -> [String] (18301.0) -
array で指定されたバックトレースから optparse ライブラリに関する行を除 外します。
...
array で指定されたバックトレースから optparse ライブラリに関する行を除
外します。
デバッグモード($DEBUGが真)の場合は何もしません。
@param array バックトレースを文字列の配列で指定します。
@return array を返します。...