def quit():
    global qdb, listener, conn
    if qdb:
        sys.settrace(None)
        qdb = None
    if conn:
        conn.close()
        conn = None
    if listener:
        listener.close()
        listener = None
Remove trace and quit
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/contrib/qdb.py/quit