Class: Readapt::Message::SetBreakpoints
- Defined in:
- lib/readapt/message/set_breakpoints.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#body, #initialize, run, #set_body
Constructor Details
This class inherits a constructor from Readapt::Message::Base
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/readapt/message/set_breakpoints.rb', line 6 def run path = Readapt.normalize_path(arguments['source']['path']) debugger.clear_breakpoints path lines = [] set_body( breakpoints: arguments['breakpoints'].map do |val| debugger.set_breakpoint path, val['line'], val['condition'], val['hitCondition'] lines.push val['line'] { verified: true, # @todo Verify source: arguments['source'], line: val['line'] } end ) Breakpoints.set(path, lines) end |