current_context (Debugger)

    /*
     *   call-seq:
     *      Debugger.current_context -> context
     *
     *   Returns current context.
     *   <i>Note:</i> Debugger.current_context.thread == Thread.current
     */
    static VALUE
    debug_current_context(VALUE self)
    {
        VALUE thread, context;

        debug_check_started();

        thread = rb_thread_current();
        thread_context_lookup(thread, &context, NULL);

        return context;
    }