Debugging multi agent systems