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

Side by Side Diff: Source/devtools/front_end/DebuggerModel.js

Issue 145583007: Revert of Make pause-on-exceptions toggle/tri-state button. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/SourcesPanel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 this._scripts = {}; 42 this._scripts = {};
43 /** @type {!Object.<!string, !Array.<!WebInspector.Script>>} */ 43 /** @type {!Object.<!string, !Array.<!WebInspector.Script>>} */
44 this._scriptsBySourceURL = {}; 44 this._scriptsBySourceURL = {};
45 45
46 this._canSetScriptSource = false; 46 this._canSetScriptSource = false;
47 this._breakpointsActive = true; 47 this._breakpointsActive = true;
48 48
49 WebInspector.settings.pauseOnExceptionStateString = WebInspector.settings.cr eateSetting("pauseOnExceptionStateString", WebInspector.DebuggerModel.PauseOnExc eptionsState.DontPauseOnExceptions); 49 WebInspector.settings.pauseOnExceptionStateString = WebInspector.settings.cr eateSetting("pauseOnExceptionStateString", WebInspector.DebuggerModel.PauseOnExc eptionsState.DontPauseOnExceptions);
50 WebInspector.settings.pauseOnExceptionStateString.addChangeListener(this._pa useOnExceptionStateChanged, this); 50 WebInspector.settings.pauseOnExceptionStateString.addChangeListener(this._pa useOnExceptionStateChanged, this);
51 51
52 WebInspector.settings.lastPauseOnExceptionState = WebInspector.settings.crea teSetting("lastPauseOnExceptionState", WebInspector.DebuggerModel.PauseOnExcepti onsState.PauseOnUncaughtExceptions);
53
54 WebInspector.settings.enableAsyncStackTraces.addChangeListener(this._asyncSt ackTracesStateChanged, this); 52 WebInspector.settings.enableAsyncStackTraces.addChangeListener(this._asyncSt ackTracesStateChanged, this);
55 53
56 this.enableDebugger(); 54 this.enableDebugger();
57 55
58 WebInspector.DebuggerModel.applySkipStackFrameSettings(); 56 WebInspector.DebuggerModel.applySkipStackFrameSettings();
59 } 57 }
60 58
61 /** 59 // Keep these in sync with WebCore::ScriptDebugServer
62 * Keep these in sync with WebCore::ScriptDebugServer
63 *
64 * @enum {string}
65 */
66 WebInspector.DebuggerModel.PauseOnExceptionsState = { 60 WebInspector.DebuggerModel.PauseOnExceptionsState = {
67 DontPauseOnExceptions : "none", 61 DontPauseOnExceptions : "none",
68 PauseOnAllExceptions : "all", 62 PauseOnAllExceptions : "all",
69 PauseOnUncaughtExceptions: "uncaught" 63 PauseOnUncaughtExceptions: "uncaught"
70 }; 64 };
71 65
72 /** 66 /**
73 * @constructor 67 * @constructor
74 * @implements {WebInspector.RawLocation} 68 * @implements {WebInspector.RawLocation}
75 * @param {string} scriptId 69 * @param {string} scriptId
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 this.callFrames[i].dispose(); 1071 this.callFrames[i].dispose();
1078 if (this.asyncStackTrace) 1072 if (this.asyncStackTrace)
1079 this.asyncStackTrace.dispose(); 1073 this.asyncStackTrace.dispose();
1080 } 1074 }
1081 } 1075 }
1082 1076
1083 /** 1077 /**
1084 * @type {!WebInspector.DebuggerModel} 1078 * @type {!WebInspector.DebuggerModel}
1085 */ 1079 */
1086 WebInspector.debuggerModel; 1080 WebInspector.debuggerModel;
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698