| Index: Source/core/inspector/InspectorDebuggerAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorDebuggerAgent.cpp b/Source/core/inspector/InspectorDebuggerAgent.cpp
|
| index 774575e842fe6634f2281e0bd9d638248789dad3..4c8307697e6e122075230ca3ce30a7eed1f67033 100644
|
| --- a/Source/core/inspector/InspectorDebuggerAgent.cpp
|
| +++ b/Source/core/inspector/InspectorDebuggerAgent.cpp
|
| @@ -196,6 +196,9 @@ bool InspectorDebuggerAgent::checkEnabled(ErrorString* errorString)
|
|
|
| void InspectorDebuggerAgent::enable()
|
| {
|
| + if (dartAgent())
|
| + dartAgent()->enable(0);
|
| +
|
| m_instrumentingAgents->setInspectorDebuggerAgent(this);
|
| // startListeningV8Debugger may result in reporting all parsed scripts to
|
| // the agent so it should already be in enabled state by then.
|
| @@ -209,6 +212,9 @@ void InspectorDebuggerAgent::enable()
|
|
|
| void InspectorDebuggerAgent::disable()
|
| {
|
| + if (dartAgent())
|
| + dartAgent()->disable(0);
|
| +
|
| m_state->setObject(DebuggerAgentState::javaScriptBreakpoints, JSONObject::create());
|
| m_state->setLong(DebuggerAgentState::pauseOnExceptionsState, V8Debugger::DontPauseOnExceptions);
|
| m_state->setString(DebuggerAgentState::skipStackPattern, "");
|
|
|