るりまサーチ

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

別のキーワード

  1. tsort each_strongly_connected_component_from
  2. prime int_from_prime_division
  3. _builtin from_name
  4. socket connect_from
  5. addrinfo connect_from

検索結果

<< 1 2 > >>

Logger#debug(progname = nil) -> true (18154.0)

ログレベルが DEBUG のメッセージを出力します。

...ログレベルが DEBUG のメッセージを出力します。

現在の Logger のログレベルが DEBUG よりも高い場合、メッセージは出力されません。

ブロックを与えなかった場合は、progname をメッセージとしてログを出力します。

ブロッ...
...定します。
ブロックを与えた場合は、プログラム名を文字列として与えます。

//emlist[例][ruby]{
logger.debug "Waiting for input from user"
# ...
logger.debug { "User typed #{input}" }

logger.debug("MainApp") { "Received connection from #{ip}" }
//}...

Logger#debug(progname = nil) { ... } -> true (18154.0)

ログレベルが DEBUG のメッセージを出力します。

...ログレベルが DEBUG のメッセージを出力します。

現在の Logger のログレベルが DEBUG よりも高い場合、メッセージは出力されません。

ブロックを与えなかった場合は、progname をメッセージとしてログを出力します。

ブロッ...
...定します。
ブロックを与えた場合は、プログラム名を文字列として与えます。

//emlist[例][ruby]{
logger.debug "Waiting for input from user"
# ...
logger.debug { "User typed #{input}" }

logger.debug("MainApp") { "Received connection from #{ip}" }
//}...

NEWS for Ruby 3.0.0 (66.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...かれた全ての変更のリストはリンク先を参照してください。

== 言語仕様の変更

* Keyword arguments are now separated from positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183...
...class/module, a RuntimeError is now raised (previously,
it only issued a warning in verbose mode). Additionally, accessing a
class variable from the toplevel scope is now a RuntimeError.
14541
* Assigning to a numbered parameter is now a SyntaxError instead of
a warning.

== Comma...
...== Stdlib compatibility issues

* Default gems
* The following libraries are promoted to default gems from stdlib.
* English
* abbrev
* base64
* drb
* debug
* erb
* find
* net-ftp
* net-http
* net-imap
* net-protocol
* op...

Rubyの起動 (36.0)

Rubyの起動 * cmd_option * shebang

...3 = f4
def f2 = f3
def f1 = f2
f1
//}

//emlist{
% ruby --backtrace-limit=3 test.rb
test.rb:1:in `f6': unhandled exception
from
test.rb:2:in `f5'
from
test.rb:3:in `f4'
from
test.rb:4:in `f3'
... 3 levels...
//}

: -C directory

スクリプト実行前に指定されたディレクトリ...
...ーが無ければ, "Syntax OK"と出力します。

: --copyright

著作権表示をします。


: -d
: --debug

デバッグモードでスクリプトを実行します。$DEBUG と $VERBOSE を
true にします。

: -E ex[:in]
: --encoding ex[:in]

デフォルトの外部エンコ...
...

ディレクトリ名を指定すると、スクリプト実行前に指定されたディ
レクトリに移動します。

: -y
: --yydebug

コンパイラデバッグモード。スクリプトを内部表現にコンパイルす
る時の構文解析の過程を表示します。...

irb (30.0)

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

...ns:
-f ~/.irbrc を読み込まない
-m bc モード (分数と行列の計算ができる)
-d $DEBUG を true にする (ruby -d と同じ)
-w ruby -w と同じ
-W[level=2] ruby -W と同じ
-r library ruby -r と...
...参照)
--single-irb irb 中で self を実行して得られるオブジェクトをサブ irb と共
有する
--irb_debug n irb のデバッグレベルを n に設定する
(ユーザは利用すべきではない)
-v, --version irb の...
...# サブ irb を起動
irb#1(main):001:0> x # x を表示
NameError: undefined local variable or method `x' for main:Object
from
(irb#1):1:in `Kernel#binding'

起動時のインタプリタでローカル変数 x を定義しましたが、
「irb」でサブ irb を起動...
...ンドラインオプション

irb [options] file_name opts
options:
-f ~/.irbrc を読み込まない
-d $DEBUG を true にする (ruby -d と同じ)
-w ruby -w と同じ
-W[level=2] ruby -W と同じ
-r library ruby -r と...

絞り込み条件を変える

NEWS for Ruby 2.3.0 (24.0)

NEWS for Ruby 2.3.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...g-literal というコマンドラインオプションも導入されました
8976
* コマンドラインオプションに --debug または --debug=frozen-string-literal を付けて実行すると、
freeze された文字列を操作しようとして RuntimeError が発生し...
...11788
* RubyVM::InstructionSequence#to_binary(extra_data = nil)
* RubyVM::InstructionSequence.load_from_binary(binary)
* RubyVM::InstructionSequence.load_from_binary_extra_data(binary)

* String
* フリーズされていない文字列を生成するString#+@ を追...

rubygems/commands/server_command (18.0)

ローカルにインストールされている Gem パッケージとそのドキュメントを HTTP サーバに 載せて公開するためのライブラリです。

...Usage: gem server [options]
Options:
-p, --port=PORT port to listen on
-d, --dir=GEMDIR directory from which to serve gems
--[no-]daemon run as a daemon
Common Options:
-h, --help このコマ...
...指定された設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Summary:
Documentation and gem repository HTTP serve...
...s.

The cache files for installed gems must exist to use the server as a source
for gem installation.

To install gems from a running server, use `gem install GEMNAME --source
http://gem_server_host:8808`
Defaults:
--port 8808 --dir /usr/lib/ruby/gems/1....

rubygems/commands/uninstall_command (18.0)

Gem パッケージをアンインストールするためのライブラリです。

...confirmation
-i, --install-dir DIR Directory to uninstall gem from
-n, --bindir DIR Directory to remove binaries from
-v, --version VERSION Specify version of gem to uninstall
--platform PLATFORM S...
...指定された設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
GEMNAME アンインストールする...

制御構造 (18.0)

制御構造 条件分岐: * if * unless * case 繰り返し: * while * until * for * break * next * redo * retry 例外処理: * raise * begin その他: * return * BEGIN * END

...

//emlist[][ruby]{
$_ =~ リテラル
//}

であるかのように評価されます。

==== if 修飾子

//emlist[例][ruby]{
print "debug\n" if $DEBUG
//}

文法:

式 if 式

右辺の条件が成立する時に、左辺の式を評価してその結果を返します。
条件...
...ループを作
ることができます。

//emlist[][ruby]{
begin
do_something # exception raised
rescue
# handles error
retry # restart from beginning
end
//}

rescue 節以外で retry が用いられた場合には例外 SyntaxError が発生
します。

=== 例外処理

====[a:raise...

rubygems/commands/generate_index_command (12.0)

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

...指定された設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Summary:
Generates the index files for a gem server...
...gacy YAML full index

The .Z and .rz extension files are compressed with the inflate algorithm.
The
Marshal version number comes from ruby's Marshal::MAJOR_VERSION and
Marshal::MINOR_VERSION constants. It is used to ensure compatibility. The
yaml indexes exist for l...

絞り込み条件を変える

<< 1 2 > >>