history input debug