Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2370483002: DevTools: discover default port node servers for debugging (behind experiment) (Closed)
Patch Set: for landing Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}
},

Powered by Google App Engine
This is Rietveld 408576698