要给出"AppDomains和调试符号"的解决方法,我们可以使用以下代码示例:
AppDomain newDomain = AppDomain.CreateDomain("NewDomain");
newDomain.Load("YourAssemblyName");
newDomain.SetData("yourSymbolFileKey", "path/to/your/symbol/file");
newDomain.ExecuteAssemblyByName("YourAssemblyName");
string symbolFilePath = (string)AppDomain.CurrentDomain.GetData("yourSymbolFileKey");
var debugInfo = new System.Diagnostics.SymbolStore.SymReader().Read(symbolFilePath);
// 进一步处理调试信息...
请注意,这只是一个示例,你需要根据你的具体需求进行适当的修改和调整。另外,确保你的调试符号文件与你的程序集匹配,以便正确地解析调试信息。