Class: DebugInspector

Inherits:
Object
  • Object
show all
Defined in:
lib/debug_inspector/version.rb,
ext/debug_inspector/debug_inspector.c

Constant Summary collapse

VERSION =

Don’t forget to update the version string in the gemspec file.

"1.2.0"

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.openObject



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

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



37
38
39
40
41
42
# File 'ext/debug_inspector/debug_inspector.c', line 37

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



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

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



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

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



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

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));
}

#frame_self(index) ⇒ Object



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

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