@@ -314,6 +314,8 @@ void InspectorIo::SwapBehindLock(MessageQueue<ActionType>* vector1,
314
314
315
315
void InspectorIo::PostIncomingMessage (InspectorAction action, int session_id,
316
316
const std::string& message) {
317
+ Debug (parent_env_, DebugCategory::INSPECTOR_SERVER,
318
+ " >>> %s\n " , message.c_str ());
317
319
if (AppendMessage (&incoming_message_queue_, action, session_id,
318
320
Utf8ToStringView (message))) {
319
321
Agent* agent = main_thread_req_->second ;
@@ -395,6 +397,10 @@ void InspectorIo::MainThreadReqAsyncCb(uv_async_t* req) {
395
397
396
398
void InspectorIo::Write (TransportAction action, int session_id,
397
399
const StringView& inspector_message) {
400
+ std::string message_str =
401
+ protocol::StringUtil::StringViewToUtf8 (inspector_message);
402
+ Debug (parent_env_, DebugCategory::INSPECTOR_SERVER,
403
+ " <<< %s\n " , message_str.c_str ());
398
404
AppendMessage (&outgoing_message_queue_, action, session_id,
399
405
StringBuffer::create (inspector_message));
400
406
int err = uv_async_send (&thread_req_);
0 commit comments