Class: Debugger::Breakpoint

Class | Debugger::Breakpoint
In: | ext/ruby_debug.c
Parent: | Object

Document-class: Breakpoint

## Summary

This class represents a breakpoint. It defines position of the breakpoint and condition when this breakpoint should be triggered.

### Methods

enabled= enabled? expr expr= hit_condition hit_condition= hit_count hit_value hit_value= id pos pos= source source=

### Public Instance methods

breakpoint.enabled = bool

Enables or disables breakpoint.

breakpoint.enabled?

Returns whether breakpoint is enabled or not.

breakpoint.expr → string

Returns a codition expression when this breakpoint should be activated.

breakpoint.expr = string

Sets the codition expression when this breakpoint should be activated.

breakpoint.hit_condition → symbol

Returns the hit condition of the breakpoint:

`nil` if it is an unconditional breakpoint, or :greater_or_equal, :equal, :modulo

breakpoint.hit_condition = symbol

Sets the hit condition of the breakpoint which must be one of the following values:

`nil` if it is an unconditional breakpoint, or :greater_or_equal(:ge), :equal(:eq), :modulo(:mod)

breakpoint.hit_count → int

Returns the hit count of the breakpoint.

breakpoint.hit_value → int

Returns the hit value of the breakpoint.

breakpoint.hit_value = int

Sets the hit value of the breakpoint.

breakpoint.id → int

Returns id of the breakpoint.

breakpoint.pos → string or int

Returns a position of this breakpoint.

breakpoint.pos = string or int

Sets the position of this breakpoint.

breakpoint.source → string

Returns a source of the breakpoint.

breakpoint.source = string

Sets the source of the breakpoint.

[Validate]