Looks like this guys is used only in layer API, so perhaps it should be called `XI_DEBUG_LAYER_API`..?