Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: webkit/glue/devtools/js/debugger_agent.js

Issue 271100: DevTools: enable DevToolsSanityTest.TestCompletionOnPause (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/debugger/devtools_sanity_unittest.cc ('k') | webkit/glue/devtools/js/tests.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 var line = devtools.DebuggerAgent.v8ToWwebkitLineNumber_(stackFrame.line); 1115 var line = devtools.DebuggerAgent.v8ToWwebkitLineNumber_(stackFrame.line);
1116 1116
1117 // Add basic scope chain info with scope variables. 1117 // Add basic scope chain info with scope variables.
1118 var scopeChain = []; 1118 var scopeChain = [];
1119 var ScopeType = devtools.DebuggerAgent.ScopeType; 1119 var ScopeType = devtools.DebuggerAgent.ScopeType;
1120 for (var i = 0; i < stackFrame.scopes.length; i++) { 1120 for (var i = 0; i < stackFrame.scopes.length; i++) {
1121 var scope = stackFrame.scopes[i]; 1121 var scope = stackFrame.scopes[i];
1122 scope.frameNumber = stackFrame.index; 1122 scope.frameNumber = stackFrame.index;
1123 var scopeObjectProxy = new WebInspector.ObjectProxy(scope, [], 0, '', true); 1123 var scopeObjectProxy = new WebInspector.ObjectProxy(scope, [], 0, '', true);
1124 scopeObjectProxy.isScope = true; 1124 scopeObjectProxy.isScope = true;
1125 scopeObjectProxy.properties = {}; // TODO(pfeldman): Fix autocomplete.
1126 switch(scope.type) { 1125 switch(scope.type) {
1127 case ScopeType.Global: 1126 case ScopeType.Global:
1128 scopeObjectProxy.isDocument = true; 1127 scopeObjectProxy.isDocument = true;
1129 break; 1128 break;
1130 case ScopeType.Local: 1129 case ScopeType.Local:
1131 scopeObjectProxy.isLocal = true; 1130 scopeObjectProxy.isLocal = true;
1132 scopeObjectProxy.thisObject = 1131 scopeObjectProxy.thisObject =
1133 devtools.DebuggerAgent.formatObjectProxy_(stackFrame.receiver); 1132 devtools.DebuggerAgent.formatObjectProxy_(stackFrame.receiver);
1134 break; 1133 break;
1135 case ScopeType.With: 1134 case ScopeType.With:
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 1567
1569 1568
1570 /** 1569 /**
1571 * @param {number} handle Object handle. 1570 * @param {number} handle Object handle.
1572 * @return {?Object} Returns the object with the handle if it was sent in this 1571 * @return {?Object} Returns the object with the handle if it was sent in this
1573 * message(some objects referenced by handles may be missing in the message). 1572 * message(some objects referenced by handles may be missing in the message).
1574 */ 1573 */
1575 devtools.DebuggerMessage.prototype.lookup = function(handle) { 1574 devtools.DebuggerMessage.prototype.lookup = function(handle) {
1576 return this.refs_[handle]; 1575 return this.refs_[handle];
1577 }; 1576 };
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_sanity_unittest.cc ('k') | webkit/glue/devtools/js/tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698