Record lines

Is there any way to record lines? I have seen you can create lines in different ways: DrawDebugLine, Primitive, BatchedLines and ParticleSystem. However, I still do not know the correct way and I have tried Particle Systems and Batched Lines and neither works