target, breakpoints: improve error handling