Debug undo manager