class Rubinius::Debugger::Command::Condition
Public Instance Methods
run(args)
click to toggle source
# File lib/rubinius/debugger/commands.rb, line 685 def run(args) bp_id, condition = args.split(/\s+/, 2) bp_id = bp_id.to_i if @debugger.breakpoints.empty? error "No breakpoint set" return elsif bp_id > @debugger.breakpoints.size || bp_id < 1 error "Invalid breakpoint number." return end bp = @debugger.breakpoints[bp_id - 1] bp.set_condition(condition) end