Sha256: ebcb884c18e47856478de01ef5914e4bc4ff8c446135a4e40c9daa71d65f7658
Contents?: true
Size: 720 Bytes
Versions: 8
Compression:
Stored size: 720 Bytes
Contents
require 'rubygems'; require 'require_relative' require_relative './base/cmd' class Trepan::Command::DeleteBreakpontCommand < Trepan::Command CATEGORY = 'breakpoints' NAME = File.basename(__FILE__, '.rb') SHORT_HELP = 'Delete a breakpoint' HELP = <<-HELP Specify the breakpoint by number, use 'info break' to see the numbers HELP def run(args) if args.size != 2 errmsg 'Please specify which breakpoint by number' return end begin i = Integer(args[1]) rescue ArgumentError errmsg "'#{args}' is not a number" return end if @proc.delete_breakpoint_by_number(i) msg('Deleted breakpoint %d.' % i) end end end
Version data entries
8 entries across 8 versions & 1 rubygems