In Files

Class/Module Index [+]

Quicksearch

DEBUGGER__::Context

Public Class Methods

new() click to toggle source
 
               # File debug.rb, line 46
def initialize
  if Thread.current == Thread.main
    @stop_next = 1
  else
    @stop_next = 0
  end
  @last_file = nil
  @file = nil
  @line = nil
  @no_step = nil
  @frames = []
  @finish_pos = 0
  @trace = false
  @catch = "StandardError"
  @suspend_next = false
end
            

Public Instance Methods

check_suspend() click to toggle source
 
               # File debug.rb, line 83
def check_suspend
  while MUTEX.synchronize {
      if @suspend_next
        DEBUGGER__.waiting.push Thread.current
        @suspend_next = false
        true
      end
    }
  end
            
clear_suspend() click to toggle source
 
               # File debug.rb, line 71
def clear_suspend
  @suspend_next = false
end
            
readline(prompt, hist) click to toggle source
 
               # File debug.rb, line 31
def readline(prompt, hist)
  Readline::readline(prompt, hist)
end
            
resume_all() click to toggle source
 
               # File debug.rb, line 79
def resume_all
  DEBUGGER__.resume
end
            
set_suspend() click to toggle source
 
               # File debug.rb, line 67
def set_suspend
  @suspend_next = true
end
            
stop_next(n=1) click to toggle source
 
               # File debug.rb, line 63
def stop_next(n=1)
  @stop_next = n
end
            
suspend_all() click to toggle source
 
               # File debug.rb, line 75
def suspend_all
  DEBUGGER__.suspend
end
            

Commenting is here to help enhance the documentation. For example, sample code, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

blog comments powered by Disqus