Class: Debase::Breakpoint
- Defined in:
- lib/debase/rbx/breakpoint.rb,
ext/breakpoint.c
Constant Summary collapse
- @@global_id =
1
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#expr ⇒ Object
<For tests>.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#pos ⇒ Object
Returns the value of attribute pos.
-
#source ⇒ Object
Returns the value of attribute source.
Class Method Summary collapse
Instance Method Summary collapse
- #delete! ⇒ Object
-
#initialize(source, pos, expr) ⇒ Breakpoint
constructor
A new instance of Breakpoint.
Constructor Details
#initialize(source, pos, expr) ⇒ Breakpoint
Returns a new instance of Breakpoint.
67 68 69 70 71 72 73 |
# File 'ext/breakpoint.c', line 67 def initialize(file, line, expr=nil) @source = file @pos = line @expr = expr @id = @@global_id @@global_id = @@global_id + 1 end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
154 155 156 |
# File 'ext/breakpoint.c', line 154 def enabled @enabled end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
107 108 109 |
# File 'ext/breakpoint.c', line 107 def id @id end |
#pos ⇒ Object
Returns the value of attribute pos.
163 164 165 |
# File 'ext/breakpoint.c', line 163 def pos @pos end |
#source ⇒ Object
Returns the value of attribute source.
116 117 118 |
# File 'ext/breakpoint.c', line 116 def source @source end |
Class Method Details
.find(breakpoints, source, pos, trace_point) ⇒ Object
268 269 270 271 272 |
# File 'ext/breakpoint.c', line 268
static VALUE
Breakpoint_find(VALUE self, VALUE breakpoints, VALUE source, VALUE pos, VALUE trace_point)
{
return breakpoint_find(breakpoints, source, pos, trace_point);
}
|
.remove(breakpoints, id_value) ⇒ Object
82 83 84 85 86 |
# File 'ext/breakpoint.c', line 82 def self.remove(breakpoints, id) bp = breakpoints.delete_if {|b| b.id == id} bp.delete! if bp bp end |
Instance Method Details
#delete! ⇒ Object
16 17 18 |
# File 'lib/debase/rbx/breakpoint.rb', line 16 def delete! end |