def HowDidIgetHere(wherecalledonly=False):
    """Show a traceback with calls that brought us to the current location.
    Used for debugging.
    """
    import traceback
    if wherecalledonly:
        i = traceback.format_list(traceback.extract_stack()[:-1])[-2]
        print(i.strip().rstrip())
    else:
        print(70 * '*')
        for i in traceback.format_list(traceback.extract_stack()[:-1]):
            print(i.strip().rstrip())
        print(70 * '*')
