blob: 0aa682e0b200694c5a0b5f170b0ea779549aa7c4 [file] [log] [blame]
require 'debugger/SimpleBreakpoints'
module XoredDebugger
class BasicLineBreakpoint < Breakpoint
include LineBreakpointContract
attr_reader :filename
attr_accessor :lineno
def initialize(id, file, line, temporary)
super(id, temporary)
@filename = File.expand_path(file)
@lineno = line
end
def hit(context, file, line)
File.expand_path(file) == @filename and line == @lineno and super(context)
end
end
end