class Rubinius::Debugger::Command
Public Class Methods
commands()
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 21 def self.commands @commands end
descriptor()
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 25 def self.descriptor @descriptor ||= CommandDescription.new(self) end
ext_help(str)
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 38 def self.ext_help(str) descriptor.ext_help = str end
help(str)
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 34 def self.help(str) descriptor.help = str end
match?(cmd)
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 42 def self.match?(cmd) descriptor.patterns.include?(cmd) end
new(debugger)
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 46 def initialize(debugger) @debugger = debugger end
pattern(*strs)
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 29 def self.pattern(*strs) Command.commands << self descriptor.patterns = strs end
Public Instance Methods
current_frame()
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 58 def current_frame @debugger.current_frame end
current_method()
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 54 def current_method @debugger.current_frame.method end
listen(step=false)
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 66 def listen(step=false) @debugger.listen(step) end
run_code(str)
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 50 def run_code(str) @debugger.current_frame.run(str) end
variables()
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 62 def variables @debugger.variables end