るりまサーチ

最速Rubyリファレンスマニュアル検索!
642件ヒット [1-100件を表示] (0.052秒)
トップページ > クエリ:g[x] > クエリ:backtrace[x]

別のキーワード

  1. openssl g
  2. openssl g=
  3. dsa g=
  4. dsa g
  5. dh g=

モジュール

検索結果

<< 1 2 3 ... > >>

static VALUE get_backtrace(VALUE info) (32200.0)

Ruby用語集 (23046.0)

Ruby用語集 A B C D E F G I J M N O R S Y

...Ruby用語集
A B C D E F G I J M N O R S Y

a ka sa ta na ha ma ya ra wa

=== 記号・数字
: %記法
: % notation
「%」記号で始まる多種多様なリテラル記法の総称。

参照:d:spec/literal#percent

: 0 オリジン
: zero-ba...
...sed
番号が 0 から始まること。

例えば、
Array や Vector、Matrix などの要素の番号、
String における文字の位置、
といったものは 0 オリジンである。

: 1 オリジン
: one-based
番号が 1 から始まること。

例えば、
エラ...
...また、例外オブジェクトは例外が発生した時点までのスタックトレースを保持しており、
Exception#backtrace や Exception#backtrace_locations で
取り出すことができる。

: スーパークラス
: superclass
クラス B がクラス A のサブクラ...

Gem::ConfigFile#backtrace -> bool (21101.0)

エラー発生時にバックトレースを出力するかどうかを返します。

エラー発生時にバックトレースを出力するかどうかを返します。

真の場合はバックトレースを出力します。そうでない場合はバックトレースを出力しません。

Exception#backtrace -> [String] (18213.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 (18213.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
//}...

絞り込み条件を変える

rubygems/commands/generate_index_command (12006.0)

ある Gem サーバに対するインデックスを作成するためのライブラリです。

...ある Gem サーバに対するインデックスを作成するためのライブラリです。

Usage: gem generate_index [options]
Options:
-d, --directory=DIRNAME repository base dir containing gems subdir
Common Options:
-h, --help この...
...--config-file FILE 指定された設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Summary:
G
enerates the...
...a gem server directory
Description:
The generate_index command creates a set of indexes for serving gems
statically. The command expects a 'gems' directory under the path given to
the --directory option. When done, it will generate a set of files like
this:

g
...

Gem::ConfigFile#backtrace=(backtrace) (9208.0)

エラー発生時にバックトレースを出力するかどうか設定します。

...エラー発生時にバックトレースを出力するかどうか設定します。

@param backtrace 真を指定するとエラー発生時にバックトレースを出力するようになります。...

Gem::ConfigFile::DEFAULT_BACKTRACE -> false (9101.0)

バックトレースが表示されるかどうかのデフォルト値です。

バックトレースが表示されるかどうかのデフォルト値です。

Thread#backtrace_locations(range) -> [Thread::Backtrace::Location] | nil (6332.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...
<< 1 2 3 ... > >>