/* * call-seq: * Debugger.stop -> bool * * This method disacivates the debugger. It returns +true+ if the debugger is disacivated, * otherwise it returns +false+. * * <i>Note that if you want to stop debugger, you must call Debugger.stop as many time 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; }