Module: Readapt::Monitor

Defined in:
lib/readapt/monitor.rb,
ext/readapt/monitor.c

Overview

The module responsible for stepping through code and providing snapshots.

Class Method Summary collapse

Class Method Details

.pause(id) ⇒ Object



308
309
310
311
312
313
314
315
316
317
318
319
320
321
# File 'ext/readapt/monitor.c', line 308

static VALUE
monitor_pause_s(VALUE self, VALUE id)
{
	VALUE ref;
	thread_reference_t *ptr;

	ref = thread_reference_id(id);
	if (ref != Qnil)
	{
		ptr = thread_reference_pointer(ref);
		ptr->control = rb_intern("pause");
	}
	return Qnil;
}

.start(file) {|| ... } ⇒ Boolean

Enable tracepoints. Yield a Snapshot to the provided block for every stop (breakpoints, steps, etc.).

Yield Parameters:

Returns:

  • (Boolean)


13
14
# File 'lib/readapt/monitor.rb', line 13

module Monitor
end

.stopBoolean

Disable tracepoints.

Returns:

  • (Boolean)


13
14
# File 'lib/readapt/monitor.rb', line 13

module Monitor
end