diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/TestRequestSender.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/TestRequestSender.cs index 5d8271fda7..9f9d1ed16a 100644 --- a/src/Microsoft.TestPlatform.CommunicationUtilities/TestRequestSender.cs +++ b/src/Microsoft.TestPlatform.CommunicationUtilities/TestRequestSender.cs @@ -225,6 +225,12 @@ public void CheckVersionWithTestHost() // Send the protocol negotiation request. Note that we always serialize this data // without any versioning in the message itself. var data = this.dataSerializer.SerializePayload(MessageType.VersionCheck, this.highestSupportedVersion); + + if (EqtTrace.IsVerboseEnabled) + { + EqtTrace.Verbose("TestRequestSender.CheckVersionWithTestHost: Sending check version message: {0}", data); + } + this.channel.Send(data); // Wait for negotiation response @@ -250,6 +256,12 @@ public void InitializeDiscovery(IEnumerable pathToAdditionalExtensions) MessageType.DiscoveryInitialize, pathToAdditionalExtensions, this.protocolVersion); + + if (EqtTrace.IsVerboseEnabled) + { + EqtTrace.Verbose("TestRequestSender.InitializeDiscovery: Sending initialize discovery with message: {0}", message); + } + this.channel.Send(message); } @@ -268,6 +280,12 @@ public void DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEve MessageType.StartDiscovery, discoveryCriteria, this.protocolVersion); + + if (EqtTrace.IsVerboseEnabled) + { + EqtTrace.Verbose("TestRequestSender.DiscoverTests: Sending discover tests with message: {0}", message); + } + this.channel.Send(message); } #endregion @@ -283,7 +301,7 @@ public void InitializeExecution(IEnumerable pathToAdditionalExtensions) this.protocolVersion); if (EqtTrace.IsVerboseEnabled) { - EqtTrace.Verbose("TestRequestSender.InitializeExecution: Sending initializing execution with message: {0}", message); + EqtTrace.Verbose("TestRequestSender.InitializeExecution: Sending initialize execution with message: {0}", message); } this.channel.Send(message); @@ -534,6 +552,11 @@ private void OnExecutionMessageReceived(object sender, MessageReceivedEventArgs result, this.protocolVersion); + if (EqtTrace.IsVerboseEnabled) + { + EqtTrace.Verbose("TestRequestSender.OnExecutionMessageReceived: Sending AttachDebugger with message: {0}", message); + } + this.channel.Send(resultMessage); break;