Index: Source/devtools/front_end/DebuggerModel.js |
diff --git a/Source/devtools/front_end/DebuggerModel.js b/Source/devtools/front_end/DebuggerModel.js |
index e749420fa14ce7c610933c4c973c95b6c8f389b4..a4526009edbfd4126e1d276232c1db0d741ccc9b 100644 |
--- a/Source/devtools/front_end/DebuggerModel.js |
+++ b/Source/devtools/front_end/DebuggerModel.js |
@@ -49,6 +49,8 @@ WebInspector.DebuggerModel = function() |
WebInspector.settings.pauseOnExceptionStateString = WebInspector.settings.createSetting("pauseOnExceptionStateString", WebInspector.DebuggerModel.PauseOnExceptionsState.DontPauseOnExceptions); |
WebInspector.settings.pauseOnExceptionStateString.addChangeListener(this._pauseOnExceptionStateChanged, this); |
+ WebInspector.settings.lastPauseOnExceptionState = WebInspector.settings.createSetting("lastPauseOnExceptionState", WebInspector.DebuggerModel.PauseOnExceptionsState.PauseOnAllExceptions); |
vsevik
2013/12/27 09:22:34
PauseOnUncaught by default is better.
eustas
2013/12/30 14:08:59
Done.
|
+ |
WebInspector.settings.enableAsyncStackTraces.addChangeListener(this._asyncStackTracesStateChanged, this); |
this.enableDebugger(); |
@@ -56,7 +58,11 @@ WebInspector.DebuggerModel = function() |
WebInspector.DebuggerModel.applySkipStackFrameSettings(); |
} |
-// Keep these in sync with WebCore::ScriptDebugServer |
+/** |
+ * Keep these in sync with WebCore::ScriptDebugServer |
+ * |
+ * @enum {string} |
+ */ |
WebInspector.DebuggerModel.PauseOnExceptionsState = { |
DontPauseOnExceptions : "none", |
PauseOnAllExceptions : "all", |