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

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

Issue 113100: DevTools: Activate inspector window on break / exception. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/renderer/devtools_client.cc ('k') | webkit/glue/webdevtoolsclient_delegate.h » ('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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 };
OLDNEW
« no previous file with comments | « chrome/renderer/devtools_client.cc ('k') | webkit/glue/webdevtoolsclient_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698