Changeset 60893 in webkit
- Timestamp:
- Jun 9, 2010 8:00:30 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r60889 r60893 1 2010-06-09 Pavel Podivilov <podivilov@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: Add isDebuggerAlwaysEnabled method to ScriptDebugServer. 6 This method returns true if debugger should always be enabled when 7 frontend is attached. 8 https://bugs.webkit.org/show_bug.cgi?id=40289 9 10 * bindings/js/ScriptDebugServer.cpp: 11 (WebCore::ScriptDebugServer::isDebuggerAlwaysEnabled): 12 * bindings/js/ScriptDebugServer.h: 13 * bindings/v8/ScriptDebugServer.cpp: 14 (WebCore::ScriptDebugServer::isDebuggerAlwaysEnabled): 15 * bindings/v8/ScriptDebugServer.h: 16 * inspector/InspectorController.cpp: 17 (WebCore::InspectorController::setFrontend): 18 1 19 2010-06-07 Ilya Tikhonovsky <loislo@chromium.org> 2 20 -
trunk/WebCore/bindings/js/ScriptDebugServer.cpp
r60843 r60893 127 127 } 128 128 129 bool ScriptDebugServer::isDebuggerAlwaysEnabled() 130 { 131 return false; 132 } 133 129 134 bool ScriptDebugServer::hasListenersInterestedInPage(Page* page) 130 135 { -
trunk/WebCore/bindings/js/ScriptDebugServer.h
r60843 r60893 92 92 void pageCreated(Page*); 93 93 94 bool isDebuggerAlwaysEnabled(); 95 94 96 private: 95 97 typedef HashSet<ScriptDebugListener*> ListenerSet; -
trunk/WebCore/bindings/v8/ScriptDebugServer.cpp
r60843 r60893 302 302 } 303 303 304 bool ScriptDebugServer::isDebuggerAlwaysEnabled() 305 { 306 return true; 307 } 308 304 309 #if ENABLE(V8_SCRIPT_DEBUG_SERVER) 305 310 void ScriptDebugServer::v8DebugEventCallback(const v8::Debug::EventDetails& eventDetails) -
trunk/WebCore/bindings/v8/ScriptDebugServer.h
r60843 r60893 95 95 PassRefPtr<JavaScriptCallFrame> currentCallFrame(); 96 96 97 bool isDebuggerAlwaysEnabled(); 98 97 99 private: 98 100 ScriptDebugServer(); -
trunk/WebCore/inspector/InspectorController.cpp
r60889 r60893 434 434 if (m_timelineAgent) 435 435 m_timelineAgent->resetFrontendProxyObject(m_frontend.get()); 436 #if ENABLE(JAVASCRIPT_DEBUGGER) && USE(JSC) 437 String debuggerEnabled = setting(debuggerEnabledSettingName); 438 if (debuggerEnabled == "true") 439 enableDebugger(); 440 String profilerEnabled = setting(profilerEnabledSettingName); 441 if (profilerEnabled == "true") 442 enableProfiler(); 436 #if ENABLE(JAVASCRIPT_DEBUGGER) 437 if (ScriptDebugServer::shared().isDebuggerAlwaysEnabled()) { 438 // FIXME (40364): This will force pushing script sources to frontend even if script 439 // panel is inactive. 440 enableDebuggerFromFrontend(false); 441 } else { 442 String debuggerEnabled = setting(debuggerEnabledSettingName); 443 if (debuggerEnabled == "true") 444 enableDebugger(); 445 String profilerEnabled = setting(profilerEnabledSettingName); 446 if (profilerEnabled == "true") 447 enableProfiler(); 448 } 443 449 #endif 444 450 -
trunk/WebKit/chromium/ChangeLog
r60889 r60893 1 2010-06-09 Pavel Podivilov <podivilov@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Web Inspector: retreive debugger script source synchronously when 6 frontend is attached. We need this to be able to stop on top-level 7 breakpoints. 8 https://bugs.webkit.org/show_bug.cgi?id=40289 9 10 * WebKit.gypi: 11 * src/DebuggerAgent.h: 12 * src/DebuggerAgentImpl.cpp: 13 * src/DebuggerAgentImpl.h: 14 * src/WebDevToolsAgentImpl.cpp: 15 (WebKit::WebDevToolsAgentImpl::createInspectorFrontendProxy): 16 * src/js/DebuggerScript.js: 17 * src/js/DevTools.js: 18 (WebInspector.loaded): 19 * src/js/DevToolsHostStub.js: 20 1 21 2010-06-07 Ilya Tikhonovsky <loislo@chromium.org> 2 22 -
trunk/WebKit/chromium/WebKit.gypi
r58253 r60893 36 36 'src/js/InspectorControllerImpl.js', 37 37 'src/js/DebuggerAgent.js', 38 'src/js/DebuggerScript.js',39 38 'src/js/ProfilerAgent.js', 40 39 'src/js/ProfilerProcessor.js', -
trunk/WebKit/chromium/src/DebuggerAgent.h
r57701 r60893 41 41 \ 42 42 /* Request v8 to process all debug commands in the queue. */ \ 43 METHOD0(processDebugCommands) \ 44 \ 45 /* Push DebuggerScript.js content to the agent. */ \ 46 METHOD1(setDebuggerScriptSource, String) 43 METHOD0(processDebugCommands) 47 44 48 45 DEFINE_RPC_CLASS(DebuggerAgent, DEBUGGER_AGENT_STRUCT) -
trunk/WebKit/chromium/src/DebuggerAgentImpl.cpp
r57701 r60893 80 80 } 81 81 82 void DebuggerAgentImpl::setDebuggerScriptSource(const String& source)83 {84 WebCore::ScriptDebugServer::shared().setDebuggerScriptSource(source);85 }86 87 82 void DebuggerAgentImpl::debuggerOutput(const String& command) 88 83 { -
trunk/WebKit/chromium/src/DebuggerAgentImpl.h
r57701 r60893 61 61 virtual void getContextId(); 62 62 virtual void processDebugCommands(); 63 virtual void setDebuggerScriptSource(const String&);64 63 65 64 void debuggerOutput(const WebCore::String& out); -
trunk/WebKit/chromium/src/WebDevToolsAgentImpl.cpp
r60889 r60893 463 463 compileUtilityScripts(); 464 464 initDevToolsAgentHost(); 465 #if ENABLE(V8_SCRIPT_DEBUG_SERVER) 466 WebCString debuggerScriptJs = m_client->debuggerScriptSource(); 467 WebCore::ScriptDebugServer::shared().setDebuggerScriptSource( 468 WebCore::String(debuggerScriptJs.data(), debuggerScriptJs.length())); 469 #endif 465 470 } 466 471 -
trunk/WebKit/chromium/src/js/DebuggerScript.js
r60843 r60893 29 29 */ 30 30 31 function debuggerScriptConstructor() {31 (function () { 32 32 33 33 var DebuggerScript = {}; … … 276 276 return DebuggerScript; 277 277 278 } 278 })(); -
trunk/WebKit/chromium/src/js/DevTools.js
r60843 r60893 186 186 Preferences.canEditScriptSource = true; 187 187 188 RemoteDebuggerAgent.setDebuggerScriptSource("(" + debuggerScriptConstructor + ")();");189 190 188 oldLoaded.call(this); 191 189 -
trunk/WebKit/chromium/src/js/DevToolsHostStub.js
r57701 r60893 56 56 57 57 58 RemoteDebuggerAgentStub.prototype.setDebuggerScriptSource = function(source)59 {60 };61 62 58 63 59 /**
Note: See TracChangeset
for help on using the changeset viewer.