def attach_gdb(space): """Run an interp-level gdb (or pdb when untranslated)""" from rpython.rlib.debug import attach_gdb attach_gdb()
def db(self, code): "!db to drop to pdb (untranslated) or gdb (translated)" from rpython.rlib.debug import attach_gdb attach_gdb()
def halt(interp, s_frame, w_rcvr): from rpython.rlib.debug import attach_gdb print s_frame.print_stack() attach_gdb()
def func(interp, s_frame, w_rcvr): if interp.space.headless.is_set(): s_frame.exitFromHeadlessExecution("EXIT_TO_DEBUGGER") from rpython.rlib.debug import attach_gdb attach_gdb()