public DebuggerSession CreateSession(IProject project) { string dbgShimName = "dbgshim"; if (Platform.PlatformIdentifier != Platforms.PlatformID.Win32NT) { dbgShimName = "lib" + dbgShimName; } var dbgShimPath = Path.Combine(DotNetCliService.Instance.Info.RootPath, "shared", "Microsoft.NETCore.App", DotNetCliService.Instance.Info.Version.ToString(), dbgShimName + Platform.DLLExtension); var result = new CoreClrDebuggerSession(System.IO.Path.GetInvalidPathChars(), dbgShimPath) { CustomSymbolReaderFactory = new PdbSymbolReaderFactory() }; return(result); }
public DebuggerSession CreateSession(IProject project) { var settings = SettingsBase.GetSettings <DotNetToolchainSettings>(); var coreAppVersion = ResolveShimVersion(); string dbgShimName = "dbgshim"; if (Platform.PlatformIdentifier != Platforms.PlatformID.Win32NT) { dbgShimName = "lib" + dbgShimName; } var dbgShimPath = Path.Combine(Path.GetDirectoryName(settings.DotNetPath), "shared", "Microsoft.NETCore.App", coreAppVersion, dbgShimName + Platform.DLLExtension); var result = new CoreClrDebuggerSession(System.IO.Path.GetInvalidPathChars(), dbgShimPath); result.CustomSymbolReaderFactory = new PdbSymbolReaderFactory(); return(result); }