private static void PdbToXML(string Input, string OutputXml) { // Get a Text Writer to spew the PDB to. var doc = new XmlDocument(); XmlWriter xw = doc.CreateNavigator().AppendChild(); // Do the pdb for the exe into an xml stream. var converter = new Pdb2XmlConverter(xw, Input); converter.ReadPdbAndWriteToXml(); xw.Close(); // Save xml to disk doc.Save(OutputXml); }