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.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 Loading... |
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; |
OLD | NEW |