in jet-symbols/src/JetBrains.CommandLine.Symbols/GetPdbTypeCommand.cs [21:45]
public int Execute()
{
if (!_symbolsFile.ExistsFile)
{
Console.Error.WriteLine("PDB file {0} does not exist.", _symbolsFile);
return 1;
}
try
{
DebugInfoType debugInfo;
if (!PdbUtils.TryGetPdbType(_symbolsFile, out debugInfo))
{
throw new Exception("Invalid PDB file " + _symbolsFile);
}
Console.Out.WriteLine(FormatDebugInfoType(debugInfo));
}
catch (Exception e)
{
Console.Error.WriteLine("Unable to read PDB type from PDF file {0}: {1} ", _symbolsFile, e.Message);
return 1;
}
return 0;
}