How to line trace in between previous frame and current frame?

Save a variable one frame and read it the next.