/*
* call-seq:
* Debugger.stop -> bool
*
* This method disables the debugger. It returns +true+ if the debugger is disabled,
* otherwise it returns +false+.
*
* <i>Note that if you want to stop debugger, you must call
* Debugger.stop as many times as you called Debugger.start
* method.</i>
*/
static VALUE
debug_stop(VALUE self)
{
debug_check_started();
start_count--;
if(start_count)
return Qfalse;
rb_remove_event_hook(debug_event_hook);
locker = Qnil;
breakpoints = Qnil;
threads_tbl = Qnil;
return Qtrue;
}