how to draw a line(edge) as static body

I am trying to draw a line as a body in cocos2d retina display,but It is taking some thickness.How can i draw with almost null thickness just line.

b2EdgeShape groundbox;
groundbox.Set(b2Vec2(2,0), b2Vec2(2,64));
groundBody->CreateFixture(&groundbox,0.0f);

any ideas please let me know
Is this OpenGL?
If you are using the default debug draw class, there should be a DrawSegment function somewhere which is actually drawing the line.
You could make sure the line thickness has been set to 1 with glLineWidth(1) before drawing.

If that makes no difference it's also possible that the placement of the viewport etc is not correct for using retina (...but I though cocos2d would take care of all that).

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