trepan/processor/trace.py
def event_processor(self, frame, event, arg):
        'A simple event processor that prints out events.'
        out = self.debugger.intf[-1].output
        lineno = frame.f_lineno
        filename = self.core.canonic_filename(frame)
        filename = self.core.filename(filename)
        if not out:
            print("%s - %s:%d" % (event, filename, lineno))
        else:
            out.write("%s - %s:%d" % (event, filename, lineno))
            if arg is not None:
                out.writeline(', %s ' % repr(arg))
            else:
                out.writeline('')
                pass
            pass
        return self.event_processor
def event_processor(self, frame, event, arg):
        'A simple event processor that prints out events.'
        out = self.debugger.intf[-1].output
        lineno = frame.f_lineno
        filename = self.core.canonic_filename(frame)
        filename = self.core.filename(filename)
        if not out:
            print("%s - %s:%d" % (event, filename, lineno))
        else:
            out.write("%s - %s:%d" % (event, filename, lineno))
            if arg is not None:
                out.writeline(', %s ' % repr(arg))
            else:
                out.writeline('')
                pass
            pass
        return self.event_processor
def event_processor ( self , frame , event , arg ) : out = self . debugger . intf [ - 1 ] . output lineno = frame . f_lineno filename = self . core . canonic_filename ( frame ) filename = self . core . filename ( filename ) if not out : print ( "%s - %s:%d" % ( event , filename , lineno ) ) else : out . write ( "%s - %s:%d" % ( event , filename , lineno ) ) if arg is not None : out . writeline ( ', %s ' % repr ( arg ) ) else : out . writeline ( '' ) pass pass return self . event_processor
A simple event processor that prints out events.
A simple event processor that prints out events .