GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — inspector: log response and requests in the inspector for debugging · nodejs/node@e33dfce

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • inspector_agent.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/inspector_agent.cc‎

Copy file name to clipboardExpand all lines: src/inspector_agent.cc
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel,
248248

249249
void dispatchProtocolMessage(const StringView& message) {
250250
std::string raw_message = protocol::StringUtil::StringViewToUtf8(message);
251+
per_process::Debug(DebugCategory::INSPECTOR_SERVER,
252+
"[inspector received] %s\n",
253+
raw_message);
251254
std::unique_ptr<protocol::DictionaryValue> value =
252255
protocol::DictionaryValue::cast(protocol::StringUtil::parseMessage(
253256
raw_message, false));
@@ -296,6 +299,13 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel,
296299
void flushProtocolNotifications() override { }
297300

298301
void sendMessageToFrontend(const StringView& message) {
302+
if (per_process::enabled_debug_list.enabled(
303+
DebugCategory::INSPECTOR_SERVER)) {
304+
std::string raw_message = protocol::StringUtil::StringViewToUtf8(message);
305+
per_process::Debug(DebugCategory::INSPECTOR_SERVER,
306+
"[inspector send] %s\n",
307+
raw_message);
308+
}
299309
delegate_->SendMessageToFrontend(message);
300310
}
301311

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.