protected override CLRTypeDebugInfo CreateDebugInfo(CorDebugStartDebuggingOptions options)
        {
            var    dncOptions = (DotNetCoreStartDebuggingOptions)options;
            string?hostFilename;

            if (!dncOptions.UseHost)
            {
                hostFilename = null;
            }
            else if (string.IsNullOrWhiteSpace(dncOptions.Host))
            {
                hostFilename = DotNetCoreHelpers.GetPathToDotNetExeHost(Bitness);
                if (!File.Exists(hostFilename))
                {
                    throw new Exception(string.Format(dnSpy_Debugger_DotNet_CorDebug_Resources.Error_CouldNotFindDotNetCoreHost, DotNetCoreHelpers.DotNetExeName));
                }
            }
            else
            {
                hostFilename = dncOptions.Host;
            }
            var hostCommandLine = dncOptions.HostArguments ?? string.Empty;

            return(new CoreCLRTypeDebugInfo(GetDbgShimAndVerify(), hostFilename, hostCommandLine));
        }
Beispiel #2
0
 protected override CLRTypeDebugInfo CreateDebugInfo(CorDebugStartDebuggingOptions options) =>
 new DesktopCLRTypeDebugInfo();