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
112 |
# File 'lib/stack-service-base/debugger.rb', line 112 def each_breakpoint(&block) = bp_entries.each(&block) |
.each_source(&block) ⇒ Object
111 |
# File 'lib/stack-service-base/debugger.rb', line 111 def each_source(&block) = stash.each(&block) |
.register(*paths) ⇒ Object
101 102 103 104 |
# File 'lib/stack-service-base/debugger.rb', line 101 def register(*paths) stash.concat(paths.flatten.map { |p| File.(p) }) stash.uniq! end |
.register_breakpoint(path, line, **opts) ⇒ Object
106 107 108 109 |
# File 'lib/stack-service-base/debugger.rb', line 106 def register_breakpoint(path, line, **opts) bp_entries << [File.(path), Integer(line), opts] p bp_entries end |