| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview Provides communication interface to remote v8 debugger. See | 6 * @fileoverview Provides communication interface to remote v8 debugger. See |
| 7 * protocol decription at http://code.google.com/p/v8/wiki/DebuggerProtocol | 7 * protocol decription at http://code.google.com/p/v8/wiki/DebuggerProtocol |
| 8 */ | 8 */ |
| 9 goog.provide('devtools.DebuggerAgent'); | 9 goog.provide('devtools.DebuggerAgent'); |
| 10 | 10 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 Local: 1, | 99 Local: 1, |
| 100 With: 2, | 100 With: 2, |
| 101 Closure: 3 | 101 Closure: 3 |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 | 104 |
| 105 /** | 105 /** |
| 106 * Resets debugger agent to its initial state. | 106 * Resets debugger agent to its initial state. |
| 107 */ | 107 */ |
| 108 devtools.DebuggerAgent.prototype.reset = function() { | 108 devtools.DebuggerAgent.prototype.reset = function() { |
| 109 this.scriptsCacheInitialized_ = false; | |
| 110 this.contextId_ = null; | 109 this.contextId_ = null; |
| 111 this.parsedScripts_ = {}; | 110 this.parsedScripts_ = {}; |
| 112 this.requestNumberToBreakpointInfo_ = {}; | 111 this.requestNumberToBreakpointInfo_ = {}; |
| 113 this.currentCallFrame_ = null; | 112 this.currentCallFrame_ = null; |
| 114 this.requestSeqToCallback_ = {}; | 113 this.requestSeqToCallback_ = {}; |
| 115 if (WebInspector.panels && | |
| 116 WebInspector.panels.scripts.element.parentElement) { | |
| 117 // Scripts panel has been enabled already. | |
| 118 devtools.tools.getDebuggerAgent().initializeScriptsCache(); | |
| 119 } | |
| 120 | 114 |
| 121 // Profiler isn't reset because it contains no data that is | 115 // Profiler isn't reset because it contains no data that is |
| 122 // specific for a particular V8 instance. All such data is | 116 // specific for a particular V8 instance. All such data is |
| 123 // managed by an agent on the Render's side. | 117 // managed by an agent on the Render's side. |
| 124 }; | 118 }; |
| 125 | 119 |
| 126 | 120 |
| 127 /** | 121 /** |
| 128 * Requests scripts list if it has not been requested yet. | 122 * Requests scripts list if it has not been requested yet. |
| 129 */ | 123 */ |
| (...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1324 | 1318 |
| 1325 | 1319 |
| 1326 /** | 1320 /** |
| 1327 * @param {number} handle Object handle. | 1321 * @param {number} handle Object handle. |
| 1328 * @return {?Object} Returns the object with the handle if it was sent in this | 1322 * @return {?Object} Returns the object with the handle if it was sent in this |
| 1329 * message(some objects referenced by handles may be missing in the message). | 1323 * message(some objects referenced by handles may be missing in the message). |
| 1330 */ | 1324 */ |
| 1331 devtools.DebuggerMessage.prototype.lookup = function(handle) { | 1325 devtools.DebuggerMessage.prototype.lookup = function(handle) { |
| 1332 return this.refs_[handle]; | 1326 return this.refs_[handle]; |
| 1333 }; | 1327 }; |
| OLD | NEW |