Changeset 85042 in webkit
- Timestamp:
- Apr 27, 2011 3:00:47 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85035 r85042 1 2011-04-27 Yury Semikhatsky <yurys@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: expose exception details when script is paused on exception 6 https://bugs.webkit.org/show_bug.cgi?id=59591 7 8 When script is paused on an exception, the exception value is added as <exception> 9 property in the local scope and the breakpoint details message says 10 "Paused on excepion: '<exception to strin value>'." 11 12 * English.lproj/localizedStrings.js: 13 * inspector/front-end/ScopeChainSidebarPane.js: 14 (WebInspector.ScopeChainSidebarPane.prototype.update): 15 * inspector/front-end/ScriptsPanel.js: 16 (WebInspector.ScriptsPanel.prototype._debuggerPaused.else.didGetSourceLocation): 17 (WebInspector.ScriptsPanel.prototype._debuggerPaused): 18 1 19 2011-04-26 Yury Semikhatsky <yurys@chromium.org> 2 20 -
trunk/Source/WebCore/inspector/front-end/ScopeChainSidebarPane.js
r83434 r85042 1 1 /* 2 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 74 75 if (scope.this) 75 76 extraProperties = [ new WebInspector.RemoteObjectProperty("this", WebInspector.RemoteObject.fromPayload(scope.this)) ]; 77 if (i == 0) { 78 var exception = WebInspector.debuggerModel.debuggerPausedDetails.exception; 79 if (exception) { 80 extraProperties = extraProperties || []; 81 extraProperties.push(new WebInspector.RemoteObjectProperty("<exception>", WebInspector.RemoteObject.fromPayload(exception))); 82 } 83 } 76 84 break; 77 85 case "closure": -
trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js
r84629 r85042 1 1 /* 2 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 413 414 function didGetSourceLocation(sourceFileId, lineNumber) 414 415 { 416 var exception = WebInspector.debuggerModel.debuggerPausedDetails.exception; 417 if (exception) { 418 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on exception: '%s'.", exception.description)); 419 return; 420 } 421 415 422 if (!sourceFileId || !this._presentationModel.findBreakpoint(sourceFileId, lineNumber)) 416 423 return;
Note: See TracChangeset
for help on using the changeset viewer.