Class: Debugger::Breakpoint
- Inherits:
-
Object
- Object
- Debugger::Breakpoint
- Defined in:
- ext/ruby_debug.c
Instance Method Summary collapse
-
#expr ⇒ String
Returns a codition expression when this breakpoint should be activated.
-
#id ⇒ Integer
Returns id of the breakpoint.
-
#pos ⇒ String, Integer
Returns a position of this breakpoint.
-
#source ⇒ String
Returns a source of the breakpoint.
Instance Method Details
#expr ⇒ String
Returns a codition expression when this breakpoint should be activated.
2035 2036 2037 2038 2039 2040 2041 2042 |
# File 'ext/ruby_debug.c', line 2035
static VALUE
breakpoint_expr(VALUE self)
{
debug_breakpoint_t *breakpoint;
Data_Get_Struct(self, debug_breakpoint_t, breakpoint);
return breakpoint->expr;
}
|
#id ⇒ Integer
Returns id of the breakpoint.
2050 2051 2052 2053 2054 2055 2056 2057 |
# File 'ext/ruby_debug.c', line 2050
static VALUE
breakpoint_id(VALUE self)
{
debug_breakpoint_t *breakpoint;
Data_Get_Struct(self, debug_breakpoint_t, breakpoint);
return INT2FIX(breakpoint->id);
}
|
#pos ⇒ String, Integer
Returns a position of this breakpoint.
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 |
# File 'ext/ruby_debug.c', line 2017
static VALUE
breakpoint_pos(VALUE self)
{
debug_breakpoint_t *breakpoint;
Data_Get_Struct(self, debug_breakpoint_t, breakpoint);
if(breakpoint->type == BP_METHOD_TYPE)
return rb_str_new2(rb_id2name(breakpoint->pos.mid));
else
return INT2FIX(breakpoint->pos.line);
}
|
#source ⇒ String
Returns a source of the breakpoint.
2002 2003 2004 2005 2006 2007 2008 2009 |
# File 'ext/ruby_debug.c', line 2002
static VALUE
breakpoint_source(VALUE self)
{
debug_breakpoint_t *breakpoint;
Data_Get_Struct(self, debug_breakpoint_t, breakpoint);
return breakpoint->source;
}
|