I added a layer to be a debug layer to my project, drawing the box2d debug info.
auto debugLayer = DebugLayer::create();
but the debug drawing appears behind my ‘gameLlayer’ layer.
Moving the debug add to before adding the gameLayer makes no difference.
Adding ‘setGlobalZOrder’ to the layers also seemed to have no effect.
What am I doing wrong?