Index: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js |
index fb5ad2e18ee5a65cb7081b2287c74b76068b3b73..49effbfa759f5f3e14cf17fd5b809aefef0196a1 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js |
@@ -62,7 +62,7 @@ SDK.DebuggerModel = class extends SDK.SDKModel { |
this._isPausing = false; |
Common.moduleSetting('pauseOnExceptionEnabled').addChangeListener(this._pauseOnExceptionStateChanged, this); |
Common.moduleSetting('pauseOnCaughtException').addChangeListener(this._pauseOnExceptionStateChanged, this); |
- Common.moduleSetting('enableAsyncStackTraces').addChangeListener(this.asyncStackTracesStateChanged, this); |
+ Common.moduleSetting('disableAsyncStackTraces').addChangeListener(this.asyncStackTracesStateChanged, this); |
/** @type {!Map<string, string>} */ |
this._fileURLToNodeJSPath = new Map(); |
@@ -177,8 +177,8 @@ SDK.DebuggerModel = class extends SDK.SDKModel { |
} |
asyncStackTracesStateChanged() { |
dgozman
2017/04/21 23:39:17
While we are here, let's make this private.
kozy
2017/04/22 00:02:57
Done.
|
- const maxAsyncStackChainDepth = 8; |
- var enabled = Common.moduleSetting('enableAsyncStackTraces').get() && this._debuggerEnabled; |
+ const maxAsyncStackChainDepth = 32; |
+ var enabled = !Common.moduleSetting('disableAsyncStackTraces').get() && this._debuggerEnabled; |
this._agent.setAsyncCallStackDepth(enabled ? maxAsyncStackChainDepth : 0); |
} |
@@ -864,7 +864,7 @@ SDK.DebuggerModel = class extends SDK.SDKModel { |
this._sourceMapManager.dispose(); |
Common.moduleSetting('pauseOnExceptionEnabled').removeChangeListener(this._pauseOnExceptionStateChanged, this); |
Common.moduleSetting('pauseOnCaughtException').removeChangeListener(this._pauseOnExceptionStateChanged, this); |
- Common.moduleSetting('enableAsyncStackTraces').removeChangeListener(this.asyncStackTracesStateChanged, this); |
+ Common.moduleSetting('disableAsyncStackTraces').removeChangeListener(this.asyncStackTracesStateChanged, this); |
} |
/** |