def _trace_full ( frame , event , arg ) : if event == "line" : _trace_line ( frame , event , arg ) else : _trace ( frame , event , arg ) return _trace_full
using python trace programmatically
Trace every executed line .
def _trace_full (frame, event, arg):
    """Trace every executed line."""
    if event == "line":
        _trace_line(frame, event, arg)
    else:
        _trace(frame, event, arg)
    return _trace_full