code: def _trace_line (frame, event, arg):
      
      name = frame.f_globals["__name__"]
      if name in _trace_ignore:
          return _trace_line
      for pat in _trace_filter:
          if not pat.match(name):
              return _trace_line
      lineno = frame.f_lineno
      filename = frame.f_globals["__file__"]
      if filename.endswith((".pyc", ".pyo")):
          filename = filename[:-1]
      line = linecache.getline(filename, lineno)
      currentThread = threading.currentThread()
      tid = currentThread.ident
      tname = currentThread.getName()
      args = (tid, tname, time.time(), line.rstrip(), name, lineno)
      print("THREAD(%d) %r %.2f %s # %s:%d" % args)
docs: Print current executed line.