in SmvInterceptor/SmvInterceptor.cs [707:742]
private static void PrintEnvSpew(string[] args, XmlNode settingsNode)
{
// Set debugSpew if set in interceptor XML or environment via /debug flag + plugin settings
debugSpew = (RetrieveBool("debug_spew", settingsNode) ||
!String.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("SMV_DEBUG_MODE")));
if (debugSpew)
{
WriteInterceptorLog(String.Format("INCLUDE = {0}", Environment.GetEnvironmentVariable("INCLUDE")));
WriteInterceptorLog(String.Format("LIB = {0}", Environment.GetEnvironmentVariable("LIB")));
WriteInterceptorLog(String.Format("PATH = {0}", Environment.GetEnvironmentVariable("PATH")));
foreach (string arg in args)
{
if (arg[0] != '@')
continue;
try
{
string rsp = arg.Substring(1);
WriteInterceptorLog(String.Format("Contents of response file ({0}):", rsp));
using (var reader = new StreamReader(new FileStream(rsp, FileMode.Open, FileAccess.Read)))
{
WriteInterceptorLog(reader.ReadToEnd());
}
}
catch (Exception)
{
WriteInterceptorLog("Error while reading .rsp file");
}
}
foreach (XmlAttribute setting in settingsNode.Attributes)
{
WriteInterceptorLog("Setting::" + setting.Name + " = " + setting.Value);
}
}
}