fix problems arising from breakpoint use in unsaved documents
gracefully handle setting breakpoints while debugging