avoid trying to set breakpoints when expanding code folds or in top-level functions