def __get_watchstring(wvars, frame):
    """Utility method to pretty-print the watched variables in a frame."""
    watching = ''
    watchvars = ''
    frame_vars = frame.f_locals
    for v in wvars:
        if v in frame_vars:
            watchvars += ' {}={}'.format(v, frame_vars[v])
        elif v in frame_vars.get('kwargs', {}):
            watchvars += ' kwargs[{}]={}'.format(v, frame_vars['kwargs'][v])
    watching = 'watching{}'.format(watchvars) if watchvars else ''
    if watching:
        watching = '\n' + ' ' * 10 + watching
    return watching
