コード例 #1
0
        public DebuggerStartInfo CreateDebuggerStartInfo(ExecutionCommand command)
        {
            AspNetExecutionCommand cmd       = (AspNetExecutionCommand)command;
            MonoDebuggerStartInfo  startInfo = MonoDebuggerSessionFactory.CreateDebuggerStartInfo(cmd.TargetRuntime);

            string xspPath = Path.Combine(startInfo.MonoPrefix, "lib" + Path.DirectorySeparatorChar + "mono" + Path.DirectorySeparatorChar);

            if (cmd.ClrVersion == ClrVersion.Net_1_1)
            {
                xspPath += Path.Combine("1.0", "xsp.exe");
            }
            else
            {
                xspPath += Path.Combine("2.0", "xsp2.exe");
            }

            startInfo.IsXsp            = true;
            startInfo.UserCodeOnly     = true;
            startInfo.Command          = xspPath;
            startInfo.WorkingDirectory = cmd.BaseDirectory;
            startInfo.Arguments        = cmd.XspParameters.GetXspParameters().Trim();

            string binDir = Path.Combine(cmd.BaseDirectory, "bin");

            startInfo.UserModules = new List <string> ();
            foreach (string file in Directory.GetFiles(binDir))
            {
                if (file.EndsWith(".dll") || file.EndsWith(".exe"))
                {
                    startInfo.UserModules.Add(file);
                }
            }

            return(startInfo);
        }
コード例 #2
0
        public bool CanDebugCommand(ExecutionCommand command)
        {
            AspNetExecutionCommand cmd = command as AspNetExecutionCommand;

            return(cmd != null && MonoDebuggerSessionFactory.DebuggingSupported(cmd.TargetRuntime));
        }