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 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 for (var i = 0; i < frames.length; ++i) { | 912 for (var i = 0; i < frames.length; ++i) { |
913 this.callFrames_.push(this.formatCallFrame_(frames[i])); | 913 this.callFrames_.push(this.formatCallFrame_(frames[i])); |
914 } | 914 } |
915 WebInspector.pausedScript(this.callFrames_); | 915 WebInspector.pausedScript(this.callFrames_); |
916 this.showPendingExceptionMessage_(); | 916 this.showPendingExceptionMessage_(); |
917 DevToolsHost.activateWindow(); | 917 DevToolsHost.activateWindow(); |
918 }; | 918 }; |
919 | 919 |
920 | 920 |
921 /** | 921 /** |
922 * Returns current suspended stack. | |
923 */ | |
924 devtools.DebuggerAgent.prototype.getCallFrames = function(callback) { | |
925 return this.callFrames_; | |
926 }; | |
927 | |
928 | |
929 /** | |
930 * Evaluates code on given callframe. | 922 * Evaluates code on given callframe. |
931 */ | 923 */ |
932 devtools.DebuggerAgent.prototype.evaluateInCallFrame = function( | 924 devtools.DebuggerAgent.prototype.evaluateInCallFrame = function( |
933 callFrameId, code, callback) { | 925 callFrameId, code, callback) { |
934 var callFrame = this.callFrames_[callFrameId]; | 926 var callFrame = this.callFrames_[callFrameId]; |
935 callFrame.evaluate_(code, callback); | 927 callFrame.evaluate_(code, callback); |
936 }; | 928 }; |
937 | 929 |
938 | 930 |
939 /** | 931 /** |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1424 | 1416 |
1425 | 1417 |
1426 /** | 1418 /** |
1427 * @param {number} handle Object handle. | 1419 * @param {number} handle Object handle. |
1428 * @return {?Object} Returns the object with the handle if it was sent in this | 1420 * @return {?Object} Returns the object with the handle if it was sent in this |
1429 * message(some objects referenced by handles may be missing in the message). | 1421 * message(some objects referenced by handles may be missing in the message). |
1430 */ | 1422 */ |
1431 devtools.DebuggerMessage.prototype.lookup = function(handle) { | 1423 devtools.DebuggerMessage.prototype.lookup = function(handle) { |
1432 return this.refs_[handle]; | 1424 return this.refs_[handle]; |
1433 }; | 1425 }; |
OLD | NEW |