Here is a quick snippet to output debug drawing for physics objects in Gideros mobile:

local world = b2.World.new(0, 10, true)
local debugDraw = b2.DebugDraw.new()
world:setDebugDraw(debugDraw)
stage:addChild(debugDraw)

After that you can simply create objects add them to world and iterate world steps as usually.