Novice Question Alert: How to draw a line/edge

I want to draw a line from the mouse pointer to the centre of a rigid body. I want the line to be just a visual indicator to the user i.e. not a rigid body.

Thanks for any help.
myFixture.shape = new b2PolygonShape;
myFixture.shape.SetAsEdge(new b2Vec2(2,2), new b2Vec2(8,3));

For more information: http://codingowl.com

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