How to draw lines of layer bounder for debug purpose

Hi,

I wonder if there is an easy way to draw a red line of the layer to show the area of a layer?

brickLayer = Layer::create();
brickLayer->setPosition(map->getPosition());
brickLayer->setContentSize(map->getContentSize());
this->addChild(brickLayer, 16);

Like I want to show the bounder of the brickLayer?

You can use DrawNode to draw lines.