Changeset 106541 in webkit
- Timestamp:
- Feb 2, 2012 1:12:47 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r106539 r106541 1 2012-02-02 Yury Semikhatsky <yurys@chromium.org> 2 3 Web Inspector: pause on uncaugh exceptions state is not properly restored 4 https://bugs.webkit.org/show_bug.cgi?id=77558 5 6 'Pause on exceptions' state is now stored in InspectorState object so that it is 7 properly restored on inspected process change. 8 9 Reviewed by Vsevolod Vlasov. 10 11 * inspector/InspectorDebuggerAgent.cpp: 12 (DebuggerAgentState): 13 (WebCore::InspectorDebuggerAgent::InspectorDebuggerAgent): 14 (WebCore::InspectorDebuggerAgent::disable): 15 (WebCore::InspectorDebuggerAgent::restore): 16 (WebCore::InspectorDebuggerAgent::setPauseOnExceptions): 17 (WebCore): 18 (WebCore::InspectorDebuggerAgent::setPauseOnExceptionsImpl): 19 * inspector/InspectorDebuggerAgent.h: 20 (InspectorDebuggerAgent): 21 1 22 2012-02-02 Kentaro Hara <haraken@chromium.org> 2 23 -
trunk/Source/WebCore/inspector/InspectorDebuggerAgent.cpp
r106101 r106541 50 50 static const char debuggerEnabled[] = "debuggerEnabled"; 51 51 static const char javaScriptBreakpoints[] = "javaScriptBreakopints"; 52 static const char pauseOnExceptionsState[] = "pauseOnExceptionsState"; 52 53 }; 53 54 … … 64 65 // FIXME: make breakReason optional so that there was no need to init it with "other". 65 66 clearBreakDetails(); 67 m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, ScriptDebugServer::DontPauseOnExceptions); 66 68 } 67 69 … … 86 88 { 87 89 m_state->setObject(DebuggerAgentState::javaScriptBreakpoints, InspectorObject::create()); 90 m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, ScriptDebugServer::DontPauseOnExceptions); 88 91 m_instrumentingAgents->setInspectorDebuggerAgent(0); 89 92 … … 141 144 m_frontend->globalObjectCleared(); 142 145 enable(); 146 long pauseState = m_state->getLong(DebuggerAgentState::pauseOnExceptionsState); 147 String error; 148 setPauseOnExceptionsImpl(&error, pauseState); 143 149 } 144 150 } … … 448 454 return; 449 455 } 456 setPauseOnExceptionsImpl(errorString, pauseState); 457 } 458 459 void InspectorDebuggerAgent::setPauseOnExceptionsImpl(ErrorString* errorString, int pauseState) 460 { 450 461 scriptDebugServer().setPauseOnExceptionsState(static_cast<ScriptDebugServer::PauseOnExceptionsState>(pauseState)); 451 462 if (scriptDebugServer().pauseOnExceptionsState() != pauseState) 452 463 *errorString = "Internal error. Could not change pause on exceptions state"; 464 else 465 m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, pauseState); 453 466 } 454 467 -
trunk/Source/WebCore/inspector/InspectorDebuggerAgent.h
r106101 r106541 137 137 virtual void didContinue(); 138 138 139 void setPauseOnExceptionsImpl(ErrorString*, int); 140 139 141 PassRefPtr<InspectorObject> resolveBreakpoint(const String& breakpointId, const String& scriptId, const ScriptBreakpoint&); 140 142 void clear();
Note: See TracChangeset
for help on using the changeset viewer.