I am not ignore you just trying to give it proper feed back.
Could you change setDebugDrawMask not to crash unless _debugDraw is initialized.
void PhysicsWorld::setDebugDrawMask(int mask)
if (debugDraw && mask == DEBUGDRAWNONE)
_debugDrawMask = mask;
In an unexpected exit you want to turn off the flag but you cannot find out if it is active.
There is no getDebugDrawMask.