Class: Debugger::Breakpoint

Inherits:
Object
  • Object
show all
Defined in:
ext/ruby_debug.c

Instance Method Summary collapse

Instance Method Details

#exprString

Returns a codition expression when this breakpoint should be activated.

Returns:

  • (String)


1529
1530
1531
1532
1533
1534
1535
1536
# File 'ext/ruby_debug.c', line 1529

static VALUE
breakpoint_expr(VALUE self)
{
    debug_breakpoint_t *breakpoint;

    Data_Get_Struct(self, debug_breakpoint_t, breakpoint);
    return breakpoint->expr;
}

#idInteger

Returns id of the breakpoint.

Returns:

  • (Integer)


1544
1545
1546
1547
1548
1549
1550
1551
# File 'ext/ruby_debug.c', line 1544

static VALUE
breakpoint_id(VALUE self)
{
    debug_breakpoint_t *breakpoint;
    
    Data_Get_Struct(self, debug_breakpoint_t, breakpoint);
    return INT2FIX(breakpoint->id);
}

#posString, Integer

Returns a position of this breakpoint.

Returns:

  • (String, Integer)


1514
1515
1516
1517
1518
1519
1520
1521
# File 'ext/ruby_debug.c', line 1514

static VALUE
breakpoint_pos(VALUE self)
{
    debug_breakpoint_t *breakpoint;

    Data_Get_Struct(self, debug_breakpoint_t, breakpoint);
    return breakpoint->pos;
}

#sourceString

Returns a source of the breakpoint.

Returns:

  • (String)


1499
1500
1501
1502
1503
1504
1505
1506
# File 'ext/ruby_debug.c', line 1499

static VALUE
breakpoint_source(VALUE self)
{
    debug_breakpoint_t *breakpoint;

    Data_Get_Struct(self, debug_breakpoint_t, breakpoint);
    return breakpoint->source;
}