Changeset 85042 in webkit


Ignore:
Timestamp:
Apr 27, 2011 3:00:47 AM (13 years ago)
Author:
yurys@chromium.org
Message:

2011-04-27 Yury Semikhatsky <yurys@chromium.org>

Reviewed by Pavel Feldman.

Web Inspector: expose exception details when script is paused on exception
https://bugs.webkit.org/show_bug.cgi?id=59591

When script is paused on an exception, the exception value is added as <exception>
property in the local scope and the breakpoint details message says
"Paused on excepion: '<exception to strin value>'."

  • English.lproj/localizedStrings.js:
  • inspector/front-end/ScopeChainSidebarPane.js: (WebInspector.ScopeChainSidebarPane.prototype.update):
  • inspector/front-end/ScriptsPanel.js: (WebInspector.ScriptsPanel.prototype._debuggerPaused.else.didGetSourceLocation): (WebInspector.ScriptsPanel.prototype._debuggerPaused):
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r85035 r85042  
     12011-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
    1192011-04-26  Yury Semikhatsky  <yurys@chromium.org>
    220
  • trunk/Source/WebCore/inspector/front-end/ScopeChainSidebarPane.js

    r83434 r85042  
    11/*
    22 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
     3 * Copyright (C) 2011 Google Inc. All rights reserved.
    34 *
    45 * Redistribution and use in source and binary forms, with or without
     
    7475                    if (scope.this)
    7576                        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                    }
    7684                    break;
    7785                case "closure":
  • trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js

    r84629 r85042  
    11/*
    22 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
     3 * Copyright (C) 2011 Google Inc. All rights reserved.
    34 *
    45 * Redistribution and use in source and binary forms, with or without
     
    413414            function didGetSourceLocation(sourceFileId, lineNumber)
    414415            {
     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
    415422                if (!sourceFileId || !this._presentationModel.findBreakpoint(sourceFileId, lineNumber))
    416423                    return;
Note: See TracChangeset for help on using the changeset viewer.