[前][次][番号順一覧][スレッド一覧]

ruby-changes:27313

From: drbrain <ko1@a...>
Date: Fri, 22 Feb 2013 06:31:27 +0900 (JST)
Subject: [ruby-changes:27313] drbrain:r39365 (trunk): * doc/globals.rdoc: Document what setting $DEBUG does.

drbrain	2013-02-22 06:31:09 +0900 (Fri, 22 Feb 2013)

  New Revision: 39365

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39365

  Log:
    * doc/globals.rdoc:  Document what setting $DEBUG does.
    
    * doc/globals.rdoc:  Added pointer to $-d for full documentation.

  Modified files:
    trunk/ChangeLog
    trunk/doc/globals.rdoc

Index: doc/globals.rdoc
===================================================================
--- doc/globals.rdoc	(revision 39364)
+++ doc/globals.rdoc	(revision 39365)
@@ -25,7 +25,11 @@ $$::   The process number of the Ruby ru https://github.com/ruby/ruby/blob/trunk/doc/globals.rdoc#L25
 $?::   The status of the last executed child process.
 $:::   Load path for scripts and binary modules by load or require.
 $"::   The array contains the module names loaded by require.
-$DEBUG::     The status of the -d switch.
+$DEBUG::     The debug flag, which is set by the -d switch.  Enabling debug
+             output prints each exception raised to $stderr (but not its
+             backtrace).  Setting this to a true value enables debug output as
+             if -d were given on the command line.  Setting this to a false
+             value disables debug output.
 $FILENAME::  Current input file from $<. Same as $<.filename.
 $LOAD_PATH:: The alias to the $:.
 $stderr::    The current standard error output.
@@ -37,7 +41,7 @@ $VERBOSE::   The verbose flag, which is https://github.com/ruby/ruby/blob/trunk/doc/globals.rdoc#L41
              including from Kernel#warn.
 $-0::  The alias to $/.
 $-a::  True if option -a is set. Read-only variable.
-$-d::  The alias to $DEBUG.
+$-d::  The alias of $DEBUG.  See $DEBUG above for further discusison.
 $-F::  The alias to $;.
 $-i::  In in-place-edit mode, this variable holds the extension, otherwise nil.
 $-I::  The alias to $:.
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39364)
+++ ChangeLog	(revision 39365)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Feb 22 06:30:57 2013  Eric Hodel  <drbrain@s...>
+
+	* doc/globals.rdoc:  Document what setting $DEBUG does.
+
+	* doc/globals.rdoc:  Added pointer to $-d for full documentation.
+
 Fri Feb 22 06:27:07 2013  Eric Hodel  <drbrain@s...>
 
 	* doc/globals.rdoc:  Document what setting $VERBOSE does.  [Bug #7899]

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]