summaryrefslogtreecommitdiff
path: root/src/node_options.h
diff options
context:
space:
mode:
authorAleksei Koziatinskii <ak239spb@gmail.com>2019-05-16 15:33:09 -0700
committerRuben Bridgewater <ruben@bridgewater.de>2019-06-17 19:49:40 +0200
commitf8c9a58bf5752114a43b0778c1d5ef780301177f (patch)
treeb3afc16176f80e39b8e6217838003b6ac75166d1 /src/node_options.h
parent40a1a11542e612563d6a382f4f628c41b1b8b37e (diff)
downloadandroid-node-v8-f8c9a58bf5752114a43b0778c1d5ef780301177f.tar.gz
android-node-v8-f8c9a58bf5752114a43b0778c1d5ef780301177f.tar.bz2
android-node-v8-f8c9a58bf5752114a43b0778c1d5ef780301177f.zip
inspector: added --inspect-publish-uid
This flag specifies how inspector websocket url should be reported. Tthre options are supported: - stderr - reports websocket as a message to stderr, - http - exposes /json/list endpoint that contains inspector websocket url, - binding - require('inspector').url(). Related discussion: https://github.com/nodejs/diagnostics/issues/303 PR-URL: https://github.com/nodejs/node/pull/27741 Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'src/node_options.h')
-rw-r--r--src/node_options.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/node_options.h b/src/node_options.h
index 174f536985..34c54511e1 100644
--- a/src/node_options.h
+++ b/src/node_options.h
@@ -50,6 +50,11 @@ class Options {
virtual ~Options() = default;
};
+struct InspectPublishUid {
+ bool console;
+ bool http;
+};
+
// These options are currently essentially per-Environment, but it can be nice
// to keep them separate since they are a group of options applying to a very
// specific part of Node. It might also make more sense for them to be
@@ -70,6 +75,10 @@ class DebugOptions : public Options {
bool break_first_line = false;
// --inspect-brk-node
bool break_node_first_line = false;
+ // --inspect-publish-uid
+ std::string inspect_publish_uid_string = "stderr,http";
+
+ InspectPublishUid inspect_publish_uid;
enum { kDefaultInspectorPort = 9229 };