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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js

Issue 2625223002: [DevTools] Dedicated frontend for debugging Node. (Closed)
Patch Set: test fix Created 3 years, 11 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/sdk/TargetManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
index e170ff5a3fed8d652ddc2b21bdceaaf552255a42..31d26722eb46e2aa7e4c8c5f9472f290447f645f 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js
@@ -340,6 +340,14 @@ SDK.TargetManager = class extends Common.Object {
}
_connectAndCreateMainTarget() {
+ if (Runtime.queryParam('nodeFrontend')) {
+ var target = new SDK.Target(
+ this, Common.UIString('Node'), SDK.Target.Capability.Target, this._createMainConnection.bind(this), null);
+ target.subTargetsManager = new SDK.SubTargetsManager(target);
+ target.setInspectedURL('Node');
+ return;
+ }
+
var capabilities = SDK.Target.Capability.Browser | SDK.Target.Capability.DOM | SDK.Target.Capability.JS |
SDK.Target.Capability.Log | SDK.Target.Capability.Network | SDK.Target.Capability.Target;
if (Runtime.queryParam('isSharedWorker')) {

Powered by Google App Engine
This is Rietveld 408576698