I assume you're talking about it stopping on errors when running a program within the IDE. In which case, right click on any code window, go to Toggle in the pop-up menu and select Break on Unhandled Errors.