Module: DebugPreloadSources
- Defined in:
- lib/stack-service-base/debugger.rb
Class Method Summary collapse
- .each_breakpoint(&block) ⇒ Object
- .each_source(&block) ⇒ Object
- .register(*paths) ⇒ Object
- .register_breakpoint(path, line, **opts) ⇒ Object
Class Method Details
.each_breakpoint(&block) ⇒ Object
114 |
# File 'lib/stack-service-base/debugger.rb', line 114 def each_breakpoint(&block) = bp_entries.each(&block) |
.each_source(&block) ⇒ Object
113 |
# File 'lib/stack-service-base/debugger.rb', line 113 def each_source(&block) = stash.each(&block) |
.register(*paths) ⇒ Object
103 104 105 106 |
# File 'lib/stack-service-base/debugger.rb', line 103 def register(*paths) stash.concat(paths.flatten.map { |p| File.(p) }) stash.uniq! end |
.register_breakpoint(path, line, **opts) ⇒ Object
108 109 110 111 |
# File 'lib/stack-service-base/debugger.rb', line 108 def register_breakpoint(path, line, **opts) bp_entries << [File.(path), Integer(line), opts] p bp_entries end |