Trace path of moving object in debugdraw

Hi,

Can I trace the path followed by a moving object in debugdraw? I want the path to be a uniform curve but I visually feel a jerk that I'd like to see in the form of a traced path to identify what I'm missing.
There is no existing feature you can 'turn on' to do that, but it's easy enough to store the position of a body for say, the last 100 steps and use that to draw a line.

Original thread: https://box2d.org/forum/viewtopic.php?t=9778