def get_current_traceback():
    """Get the current traceback in debug mode, using werkzeug debug tools."""
    from werkzeug.debug.tbtools import get_current_traceback
    traceback = get_current_traceback(skip=2, show_hidden_frames=False,
        ignore_system_exceptions=True)
    return traceback
