るりまサーチ

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

別のキーワード

  1. logger debug
  2. logger debug?
  3. socket so_debug
  4. socket iff_debug
  5. syslog debug

ライブラリ

キーワード

検索結果

IRB::Context#debug_level -> Integer (24207.0)

irb のデバッグレベルを返します。

...irb のデバッグレベルを返します。

デフォルト値は 0 です。

@see IRB::Context#debug_level=, IRB::Context#debug?...

IRB::Context#debug_level=(val) (12213.0)

irb のデバッグレベルを val に設定します。

...irb のデバッグレベルを val に設定します。

.irbrc ファイル中で IRB.conf[:DEBUG_LEVEL] を設定する事でも同様の操作
が行えます。

@see IRB::Context#debug_level, IRB::Context#debug?...

IRB::Context#debug? -> bool (6128.0)

irb がデバッグモード(IRB::Context#debug_level が 1 以上)で動作し ているかどうかを返します。

...irb がデバッグモード(IRB::Context#debug_level が 1 以上)で動作し
ているかどうかを返します。

デフォルト値は false です。

@see IRB::Context#debug_level, IRB::Context#debug_level=...

irb (6006.0)

irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

=== irb の使い方

Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン...
...

$ irb
irb(main):001:0>

あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。

irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def foo
irb(main):004:2> print 1
irb(main):005:2> end
irb(main):006:1>...
...「.irbrc」と呼称します。

以下のような (Ruby の) 式を .irbrc に記述すると、
irb コマンドのオプションを指定したのと同じ効果が得られます。

IRB.conf[:AUTO_INDENT] = false
IRB.conf[:BACK_TRACE_LIMIT] = 16
IRB.conf[:DEBUG_LEVEL] = 1
IRB.conf[:...

RubyVM::InstructionSequence.compile_option -> Hash (3006.0)

命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。

...命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返
します。

//emlist[例][ruby]{
require "pp"
pp RubyVM::InstructionSequence.compile_option

# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :...
...>true,
# :operands_unification=>true,
# :instructions_unification=>false,
# :stack_caching=>false,
# :trace_instruction=>true,
# :frozen_string_literal=>false,
# :debug_frozen_string_literal=>false,
# :coverage_enabled=>true,
# :debug_level=>0}
//}

@see RubyVM::InstructionSequence.compile_option=...

絞り込み条件を変える

RubyVM::InstructionSequence.compile_option=(options) (3006.0)

命令シーケンスのコンパイル時のデフォルトの最適化オプションを引数 options で指定します。

...:debug_level をキーに指定した場合は値を数値で指定します。

.new、.compile、.compile_file メソッドの実行の際に option 引数を指定し
た場合はその実行のみ最適化オプションを変更する事もできます。

@see RubyVM::Instructio...
...nSequence.new,
RubyVM::InstructionSequence.compile,
RubyVM::InstructionSequence.compile_file...