OLD | NEW |
---|---|
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 Loading... | |
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.PauseOnAllExceptions); | |
vsevik
2013/12/27 09:22:34
PauseOnUncaught by default is better.
eustas
2013/12/30 14:08:59
Done.
| |
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 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1070 this.callFrames[i].dispose(); | 1076 this.callFrames[i].dispose(); |
1071 if (this.asyncStackTrace) | 1077 if (this.asyncStackTrace) |
1072 this.asyncStackTrace.dispose(); | 1078 this.asyncStackTrace.dispose(); |
1073 } | 1079 } |
1074 } | 1080 } |
1075 | 1081 |
1076 /** | 1082 /** |
1077 * @type {!WebInspector.DebuggerModel} | 1083 * @type {!WebInspector.DebuggerModel} |
1078 */ | 1084 */ |
1079 WebInspector.debuggerModel; | 1085 WebInspector.debuggerModel; |
OLD | NEW |