diff --git a/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp b/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp
index b94b0a812921e7a1f6673c8527974066450ed4a1..a10c747b830d1f7f78810fdfff39cd4db41d6ac7 100644
--- a/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp
+++ b/share/qtcreator/qmljsdebugger/jsdebuggeragent.cpp
@@ -303,8 +303,10 @@ void JSDebuggerAgent::exceptionThrow(qint64 scriptId,
 {
     Q_UNUSED(scriptId);
 //    qDebug() << Q_FUNC_INFO << exception.toString() << hasHandler;
+#if 0 //sometimes, we get exceptions that we should just ignore.
     if (!hasHandler && state != Stopped)
         stopped(true, exception);
+#endif
 }
 
 /*!