breakpoint.rb

Path: lib/breakpoint.rb
Last Update: Fri Mar 04 20:39:10 UTC 2005

The Breakpoint library provides the convenience of being able to inspect and modify state, diagnose bugs all via IRB by simply setting breakpoints in your applications by the call of a method.

This library was written and is supported by me, Florian Gross. I can be reached at flgr@ccan.de and enjoy getting feedback about my libraries.

The whole library (including breakpoint_client.rb and binding_of_caller.rb) is licensed under the same license that Ruby uses. (Which is currently either the GNU General Public License or a custom one that allows for commercial usage.) If you for some good reason need to use this under another license please contact me.

Required files

irb   binding_of_caller   drb   drb/acl   thread  

Methods

assert   breakpoint  

Public Instance methods

See Breakpoint.assert

[Source]

# File lib/breakpoint.rb, line 543
def assert(&block)
  Binding.of_caller do |context|
    Breakpoint.assert(context, &block)
  end
end

See Breakpoint.breakpoint

[Source]

# File lib/breakpoint.rb, line 536
def breakpoint(id = nil, &block)
  Binding.of_caller do |context|
    Breakpoint.breakpoint(id, context, &block)
  end
end

[Validate]