| 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 var nextFrame = frames[i]; | 487 var nextFrame = frames[i]; |
| 488 var f = devtools.DebuggerAgent.formatCallFrame_(nextFrame, script, msg); | 488 var f = devtools.DebuggerAgent.formatCallFrame_(nextFrame, script, msg); |
| 489 f.frameNumber = i; | 489 f.frameNumber = i; |
| 490 f.caller = callerFrame; | 490 f.caller = callerFrame; |
| 491 callerFrame = f; | 491 callerFrame = f; |
| 492 } | 492 } |
| 493 | 493 |
| 494 this.currentCallFrame_ = f; | 494 this.currentCallFrame_ = f; |
| 495 | 495 |
| 496 WebInspector.pausedScript(); | 496 WebInspector.pausedScript(); |
| 497 DevToolsHost.activateWindow(); |
| 497 }; | 498 }; |
| 498 | 499 |
| 499 | 500 |
| 500 /** | 501 /** |
| 501 * Handles response to a command by invoking its callback (if any). | 502 * Handles response to a command by invoking its callback (if any). |
| 502 * @param {devtools.DebuggerMessage} msg | 503 * @param {devtools.DebuggerMessage} msg |
| 503 */ | 504 */ |
| 504 devtools.DebuggerAgent.prototype.invokeCallbackForResponse_ = function(msg) { | 505 devtools.DebuggerAgent.prototype.invokeCallbackForResponse_ = function(msg) { |
| 505 var callback = this.requestSeqToCallback_[msg.getRequestSeq()]; | 506 var callback = this.requestSeqToCallback_[msg.getRequestSeq()]; |
| 506 if (!callback) { | 507 if (!callback) { |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 | 1060 |
| 1060 | 1061 |
| 1061 /** | 1062 /** |
| 1062 * @param {number} handle Object handle. | 1063 * @param {number} handle Object handle. |
| 1063 * @return {?Object} Returns the object with the handle if it was sent in this | 1064 * @return {?Object} Returns the object with the handle if it was sent in this |
| 1064 * message(some objects referenced by handles may be missing in the message). | 1065 * message(some objects referenced by handles may be missing in the message). |
| 1065 */ | 1066 */ |
| 1066 devtools.DebuggerMessage.prototype.lookup = function(handle) { | 1067 devtools.DebuggerMessage.prototype.lookup = function(handle) { |
| 1067 return this.refs_[handle]; | 1068 return this.refs_[handle]; |
| 1068 }; | 1069 }; |
| OLD | NEW |