SM_Debug writing