Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: Source/devtools/front_end/DebuggerModel.js

Issue 102003006: Make pause-on-exceptions toggle/tri-state button. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed JSDocs Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/devtools/front_end/SourcesPanel.js » ('j') | Source/devtools/front_end/SourcesPanel.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « no previous file | Source/devtools/front_end/SourcesPanel.js » ('j') | Source/devtools/front_end/SourcesPanel.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698