Add debug callbacks