Commit 0614b501 authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

DevTools: Issue 'scripts' command on attach only, work based on after_compile...

DevTools: Issue 'scripts' command on attach only, work based on after_compile events in the rest of the cases (such as refresh).
BUG=15825

Review URL: http://codereview.chromium.org/155138

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20021 0039d316-1c4b-4281-b951-d872f2087c98
parent 68649186
...@@ -106,17 +106,11 @@ devtools.DebuggerAgent.ScopeType = { ...@@ -106,17 +106,11 @@ devtools.DebuggerAgent.ScopeType = {
* Resets debugger agent to its initial state. * Resets debugger agent to its initial state.
*/ */
devtools.DebuggerAgent.prototype.reset = function() { devtools.DebuggerAgent.prototype.reset = function() {
this.scriptsCacheInitialized_ = false;
this.contextId_ = null; this.contextId_ = null;
this.parsedScripts_ = {}; this.parsedScripts_ = {};
this.requestNumberToBreakpointInfo_ = {}; this.requestNumberToBreakpointInfo_ = {};
this.currentCallFrame_ = null; this.currentCallFrame_ = null;
this.requestSeqToCallback_ = {}; this.requestSeqToCallback_ = {};
if (WebInspector.panels &&
WebInspector.panels.scripts.element.parentElement) {
// Scripts panel has been enabled already.
devtools.tools.getDebuggerAgent().initializeScriptsCache();
}
// Profiler isn't reset because it contains no data that is // Profiler isn't reset because it contains no data that is
// specific for a particular V8 instance. All such data is // specific for a particular V8 instance. All such data is
......
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