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

Side by Side 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: Addressed comment 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
52 WebInspector.settings.enableAsyncStackTraces.addChangeListener(this._asyncSt ackTracesStateChanged, this); 54 WebInspector.settings.enableAsyncStackTraces.addChangeListener(this._asyncSt ackTracesStateChanged, this);
53 55
54 this.enableDebugger(); 56 this.enableDebugger();
55 57
56 WebInspector.DebuggerModel.applySkipStackFrameSettings(); 58 WebInspector.DebuggerModel.applySkipStackFrameSettings();
57 } 59 }
58 60
59 // Keep these in sync with WebCore::ScriptDebugServer 61 /**
62 * Keep these in sync with WebCore::ScriptDebugServer
63 *
64 * @enum {string}
65 */
60 WebInspector.DebuggerModel.PauseOnExceptionsState = { 66 WebInspector.DebuggerModel.PauseOnExceptionsState = {
61 DontPauseOnExceptions : "none", 67 DontPauseOnExceptions : "none",
62 PauseOnAllExceptions : "all", 68 PauseOnAllExceptions : "all",
63 PauseOnUncaughtExceptions: "uncaught" 69 PauseOnUncaughtExceptions: "uncaught"
64 }; 70 };
65 71
66 /** 72 /**
67 * @constructor 73 * @constructor
68 * @implements {WebInspector.RawLocation} 74 * @implements {WebInspector.RawLocation}
69 * @param {string} scriptId 75 * @param {string} scriptId
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 this.callFrames[i].dispose(); 1077 this.callFrames[i].dispose();
1072 if (this.asyncStackTrace) 1078 if (this.asyncStackTrace)
1073 this.asyncStackTrace.dispose(); 1079 this.asyncStackTrace.dispose();
1074 } 1080 }
1075 } 1081 }
1076 1082
1077 /** 1083 /**
1078 * @type {!WebInspector.DebuggerModel} 1084 * @type {!WebInspector.DebuggerModel}
1079 */ 1085 */
1080 WebInspector.debuggerModel; 1086 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