Module: DebugInspector

Defined in:
lib/debug_inspector/version.rb

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.openObject



98
99
100
101
102
103
# File 'ext/debug_inspector/debug_inspector.c', line 98

static VALUE
di_open_s(VALUE klass)
{
    VALUE self = TypedData_Wrap_Struct(klass, &di_data_type, 0);
    return rb_ensure(di_open_body, self, di_open_ensure, self);
}

Instance Method Details

#backtrace_locationsObject



45
46
47
48
49
50
# File 'ext/debug_inspector/debug_inspector.c', line 45

static VALUE
di_backtrace_locations(VALUE self)
{
    const rb_debug_inspector_t *dc = di_get_dc(self);
    return rb_debug_inspector_backtrace_locations(dc);
}

#frame_binding(index) ⇒ Object



52
53
54
55
56
57
# File 'ext/debug_inspector/debug_inspector.c', line 52

static VALUE
di_binding(VALUE self, VALUE index)
{
    const rb_debug_inspector_t *dc = di_get_dc(self);
    return rb_debug_inspector_frame_binding_get(dc, NUM2INT(index));
}

#frame_class(index) ⇒ Object



59
60
61
62
63
64
# File 'ext/debug_inspector/debug_inspector.c', line 59

static VALUE
di_frame_class(VALUE self, VALUE index)
{
    const rb_debug_inspector_t *dc = di_get_dc(self);
    return rb_debug_inspector_frame_class_get(dc, NUM2INT(index));
}

#frame_iseq(index) ⇒ Object



66
67
68
69
70
71
# File 'ext/debug_inspector/debug_inspector.c', line 66

static VALUE
di_frame_iseq(VALUE self, VALUE index)
{
    const rb_debug_inspector_t *dc = di_get_dc(self);
    return rb_debug_inspector_frame_iseq_get(dc, NUM2INT(index));
}