Web Inspector: update scope variables upon value changes via console.

https://bugs.webkit.org/show_bug.cgi?id=54720

Reviewed by Pavel Feldman.

* inspector/front-end/ScriptsPanel.js:
(WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):

git-svn-id: svn://svn.chromium.org/blink/trunk@93419 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 3b9e1edd
2011-08-19 Pavel Podivilov <podivilov@chromium.org>
Web Inspector: update scope variables upon value changes via console.
https://bugs.webkit.org/show_bug.cgi?id=54720
Reviewed by Pavel Feldman.
* inspector/front-end/ScriptsPanel.js:
(WebInspector.ScriptsPanel.prototype.evaluateInSelectedCallFrame):
2011-08-18 Pavel Podivilov <podivilov@chromium.org>
Web Inspector: extract breakpoint management code to a separate class and add tests.
......@@ -414,8 +414,14 @@ WebInspector.ScriptsPanel.prototype = {
evaluateInSelectedCallFrame: function(code, objectGroup, includeCommandLineAPI, returnByValue, callback)
{
function didEvaluate()
{
if (objectGroup === "console")
this.sidebarPanes.scopechain.update(this._presentationModel.selectedCallFrame);
callback.apply(null, arguments);
}
var selectedCallFrame = this._presentationModel.selectedCallFrame;
selectedCallFrame.evaluate(code, objectGroup, includeCommandLineAPI, returnByValue, callback);
selectedCallFrame.evaluate(code, objectGroup, includeCommandLineAPI, returnByValue, didEvaluate.bind(this));
},
getSelectedCallFrameVariables: function(callback)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment