void (IdeaProjectTestFixture fixture) { XDebuggerTestUtil.removeAllBreakpoints(fixture.getProject()); XDebuggerTestUtil.setDefaultBreakpointEnabled(fixture.getProject(), PyExceptionBreakpointType.class, false); PyExceptionBreakpointProperties properties = new PyExceptionBreakpointProperties("exceptions.ZeroDivisionError"); properties.setNotifyOnTerminate(true); properties.setNotifyOnlyOnFirst(false); properties.setIgnoreLibraries(false); PyBaseDebuggerTask.addExceptionBreakpoint(fixture, properties); properties = new PyExceptionBreakpointProperties("builtins.ZeroDivisionError"); //for python 3 properties.setNotifyOnTerminate(true); properties.setNotifyOnlyOnFirst(false); properties.setIgnoreLibraries(false); PyBaseDebuggerTask.addExceptionBreakpoint(fixture, properties); }