def METHOD_NAME(dbase, with_comments=False):
    WIDTH = 80
    try:
        WIDTH, _ = os.get_terminal_size()
    except OSError:
        pass
    print('================================= Messages =================================')
    print()
    print('  ' + 72 * '-')
    for message in dbase.messages:
        _dump_can_message(message,
                          with_comments=with_comments,
                          WIDTH=WIDTH)