General debugging  for undoTasks