Module: Debase
- Defined in:
- ext/debase_internals.c
Class Method Summary collapse
- .catchpoints ⇒ Object
-
.enable_file_filtering(bool) ⇒ Object
Enables/disables file filtering.
- .enable_trace_points ⇒ Object
- .init_variables ⇒ Object
- .set_trace_flag_to_iseq ⇒ Object
-
.unset_iseq_flags ⇒ Object
use only for tests.
-
.verbose=(bool) ⇒ Object
Enable verbose output of every TracePoint API events, useful for debugging debase.
-
.verbose? ⇒ Boolean
Returns
true
if verbose output of TracePoint API events is enabled.
Class Method Details
.catchpoints ⇒ Object
629 630 631 632 633 634 635 |
# File 'ext/debase_internals.c', line 629
static VALUE
Debase_catchpoints(VALUE self)
{
if (catchpoints == Qnil)
rb_raise(rb_eRuntimeError, "Debugger.start is not called yet.");
return catchpoints;
}
|
.enable_file_filtering(bool) ⇒ Object
Enables/disables file filtering.
674 675 676 677 678 679 |
# File 'ext/debase_internals.c', line 674
static VALUE
Debase_enable_file_filtering(VALUE self, VALUE value)
{
file_filter_enabled = RTEST(value) ? Qtrue : Qfalse;
return value;
}
|
.enable_trace_points ⇒ Object
142 143 144 145 146 |
# File 'ext/debase_internals.c', line 142
static VALUE
Debase_enable_trace_points(VALUE self)
{
return enable_trace_points();
}
|
.init_variables ⇒ Object
725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 |
# File 'ext/debase_internals.c', line 725
static VALUE
Debase_init_variables()
{
started = 0;
verbose = Qfalse;
locker = Qnil;
file_filter_enabled = Qfalse;
contexts = Qnil;
catchpoints = Qnil;
breakpoints = Qnil;
context_init_variables();
breakpoint_init_variables();
return Qtrue;
}
|
.set_trace_flag_to_iseq ⇒ Object
.unset_iseq_flags ⇒ Object
use only for tests
.verbose=(bool) ⇒ Object
Enable verbose output of every TracePoint API events, useful for debugging debase.
661 662 663 664 665 666 |
# File 'ext/debase_internals.c', line 661
static VALUE
Debase_set_verbose(VALUE self, VALUE value)
{
verbose = RTEST(value) ? Qtrue : Qfalse;
return value;
}
|
.verbose? ⇒ Boolean
Returns true
if verbose output of TracePoint API events is enabled.
649 650 651 652 653 |
# File 'ext/debase_internals.c', line 649
static VALUE
Debase_verbose(VALUE self)
{
return verbose;
}
|