breakpoint.rb

Path: vendor/rails/activesupport/lib/active_support/breakpoint.rb
Last Update: Wed Aug 16 15:17:00 UTC 2006

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   drb   drb/acl  

Methods

assert   breakpoint  

Public Instance methods

See Breakpoint.assert

[Source]

     # File vendor/rails/activesupport/lib/active_support/breakpoint.rb, line 519
519: def assert(&block)
520:   Binding.of_caller do |context|
521:     Breakpoint.assert(context, &block)
522:   end
523: end

See Breakpoint.breakpoint

[Source]

     # File vendor/rails/activesupport/lib/active_support/breakpoint.rb, line 512
512: def breakpoint(id = nil, &block)
513:   Binding.of_caller do |context|
514:     Breakpoint.breakpoint(id, context, &block)
515:   end
516: end

[Validate]