add doc on debugging