Module: Debase

Defined in:
ext/debase_internals.c

Class Method Summary collapse

Class Method Details

.catchpointsObject



599
600
601
602
603
604
605
# File 'ext/debase_internals.c', line 599

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.



644
645
646
647
648
649
# File 'ext/debase_internals.c', line 644

static VALUE
Debase_enable_file_filtering(VALUE self, VALUE value)
{
  file_filter_enabled = RTEST(value) ? Qtrue : Qfalse;
  return value;
}

.enable_trace_pointsObject



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_variablesObject



695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
# File 'ext/debase_internals.c', line 695

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_iseqObject

.unset_iseq_flagsObject

use only for tests

.verbose=(bool) ⇒ Object

Enable verbose output of every TracePoint API events, useful for debugging debase.



631
632
633
634
635
636
# File 'ext/debase_internals.c', line 631

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.

Returns:

  • (Boolean)


619
620
621
622
623
# File 'ext/debase_internals.c', line 619

static VALUE
Debase_verbose(VALUE self)
{
  return verbose;
}