Index: Source/core/inspector/InspectorDebuggerAgent.cpp |
diff --git a/Source/core/inspector/InspectorDebuggerAgent.cpp b/Source/core/inspector/InspectorDebuggerAgent.cpp |
index 43f0d19acad67ad9fce9bc0ad5edbc46b4e9d8ed..2dcc3a76a41ec3dc5e8a1624de35024a0055be6b 100644 |
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp |
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp |
@@ -61,6 +61,7 @@ namespace DebuggerAgentState { |
static const char debuggerEnabled[] = "debuggerEnabled"; |
static const char javaScriptBreakpoints[] = "javaScriptBreakopints"; |
static const char pauseOnExceptionsState[] = "pauseOnExceptionsState"; |
+static const char asyncCallStackDepth[] = "asyncCallStackDepth"; |
// Breakpoint properties. |
static const char url[] = "url"; |
@@ -196,6 +197,7 @@ void InspectorDebuggerAgent::restore() |
m_skipAllPauses = false; |
m_state->setBoolean(DebuggerAgentState::skipAllPauses, false); |
} |
+ m_asyncCallStackTracker.setAsyncCallStackDepth(m_state->getLong(DebuggerAgentState::asyncCallStackDepth)); |
} |
} |
@@ -931,6 +933,7 @@ void InspectorDebuggerAgent::skipStackFrames(ErrorString* errorString, const Str |
void InspectorDebuggerAgent::setAsyncCallStackDepth(ErrorString*, int depth) |
{ |
+ m_state->setLong(DebuggerAgentState::asyncCallStackDepth, depth); |
pfeldman
2013/12/10 17:20:54
You want to clear it in disable. Otherwise:
- ena
aandrey
2013/12/11 08:14:18
Done.
|
m_asyncCallStackTracker.setAsyncCallStackDepth(depth); |
} |