Index: third_party/WebKit/Source/devtools/front_end/main/Main.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js |
index e22b06d9eed50ce01727f9fd79cbacfaa3931560..78d653f66bf9c620b027c432b512f1b6147e8906 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js |
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js |
@@ -90,6 +90,7 @@ WebInspector.Main.prototype = { |
Runtime.experiments.register("layoutEditor", "Layout editor", true); |
Runtime.experiments.register("inspectTooltip", "Dark inspect element tooltip"); |
Runtime.experiments.register("liveSASS", "Live SASS"); |
+ Runtime.experiments.register("nodeDebugging", "Node debugging", true); |
Runtime.experiments.register("privateScriptInspection", "Private script inspection"); |
Runtime.experiments.register("requestBlocking", "Request blocking", true); |
Runtime.experiments.register("resolveVariableNames", "Resolve variable names"); |
@@ -316,12 +317,17 @@ WebInspector.Main.prototype = { |
InspectorFrontendHost.readyForTest(); |
// Asynchronously run the extensions. |
- setTimeout(lateInitialization, 0); |
+ setTimeout(lateInitialization.bind(this), 0); |
+ /** |
+ * @this {WebInspector.Main} |
+ */ |
function lateInitialization() |
{ |
console.timeStamp("Main.lateInitialization"); |
WebInspector.extensionServer.initializeExtensions(); |
+ if (Runtime.experiments.isEnabled("nodeDebugging")) |
+ new WebInspector.RemoteLocationManager(this._mainTarget); |
} |
}, |