예제 #1
0
        public DebuggerStartInfo CreateDebuggerStartInfo(ExecutionCommand command)
        {
            NativeExecutionCommand pec       = (NativeExecutionCommand)command;
            HxcppDebuggerStartInfo startInfo = new HxcppDebuggerStartInfo();

            if (command is OpenFLExecutionCommand)
            {
                startInfo.Pathes = ((OpenFLExecutionCommand)command).Pathes;
            }
            else
            {
                startInfo.Pathes = new string[0];
            }
            startInfo.Command          = pec.Command;
            startInfo.Arguments        = pec.Arguments;
            startInfo.WorkingDirectory = pec.WorkingDirectory;
            if (pec.EnvironmentVariables.Count > 0)
            {
                foreach (KeyValuePair <string, string> val in pec.EnvironmentVariables)
                {
                    startInfo.EnvironmentVariables [val.Key] = val.Value;
                }
            }
            return(startInfo);
        }
 public DebuggerStartInfo CreateDebuggerStartInfo(ExecutionCommand command)
 {
     NativeExecutionCommand pec = (NativeExecutionCommand) command;
     HxcppDebuggerStartInfo startInfo = new HxcppDebuggerStartInfo ();
     if (command is OpenFLExecutionCommand) {
         startInfo.Pathes = ((OpenFLExecutionCommand)command).Pathes;
     } else {
         startInfo.Pathes = new string[0];
     }
     startInfo.Command = pec.Command;
     startInfo.Arguments = pec.Arguments;
     startInfo.WorkingDirectory = pec.WorkingDirectory;
     if (pec.EnvironmentVariables.Count > 0) {
         foreach (KeyValuePair<string,string> val in pec.EnvironmentVariables)
             startInfo.EnvironmentVariables [val.Key] = val.Value;
     }
     return startInfo;
 }