summaryrefslogtreecommitdiff
path: root/lib/debug.rb
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-02 05:04:54 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-02 05:04:54 +0000
commit32e754c8d46afab4090b5971dda6b4e491d04bd2 (patch)
tree936171cce12023534136a8f26308c70e2c9ce3f4 /lib/debug.rb
parente91fb5eb6f5ccef0e4903b78e76626366b8a7ffa (diff)
* lib/debug.rb: Documentation for DEBUGGER__ class methods based on
patch by Vincent Batts [ruby-core:51253] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index 0cf81c0..40886b1 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -891,22 +891,34 @@ EOHELP
@stdout = STDOUT
class << DEBUGGER__
+ # Returns the IO used as stdout. Defaults to STDOUT
def stdout
@stdout
end
+ # Sets the IO used as stdout. Defaults to STDOUT
def stdout=(s)
@stdout = s
end
+ # Returns the display expression list
+ #
+ # See DEBUGGER__ for more usage
def display
@display
end
+ # Returns the list of break points where execution will be stopped.
+ #
+ # See DEBUGGER__ for more useage
def break_points
@break_points
end
+ # Returns the list of waiting threads.
+ #
+ # When stepping through the traces of a function, thread gets suspended, to
+ # be resumed later.
def waiting
@waiting
end