Пример #1
0
        /// <summary>
        /// Constructs a Debugger instance that uses the specified DebuggerSyncConstruct to 
        /// communicate with its controller, and preloads the ArchAngel Debug process with
        /// the assemblies and ArchAngel project specified.
        /// </summary>
        /// <param name="debuggerSync">The DebuggerSyncConstruct object used to synchronise the
        /// Debugger instance with its controller.</param>
        /// <param name="archAngelProjectFilename">The filename of the ArchAngel Project (*.aaproj)
        /// that will be debugged.</param>
        /// <param name="assembliesToLoad">A list of assemblies the template function relies on to run.</param>
        public Debugger(DebuggerSyncConstruct debuggerSync, string archAngelProjectFilename, IEnumerable<string> assembliesToLoad)
        {
            if (debuggerSync == null)
            {
                throw new ArgumentNullException("debuggerSync");
            }

            TestFunctionName = "Main";
            TestClassname = "Test";
            TestNamespace = "Test";
            CodeFilename = "Test.cs";

            ArgumentList = new ArgumentList(new object[] { new string[0] });

            _DebuggerSync = debuggerSync;
            DebugProcess.StartDebugProcess();

            AssemblyLocations = new List<string>(assembliesToLoad);

            DebugProcess.LoadCommandReceiver(AssemblyLocations, archAngelProjectFilename);
        }
Пример #2
0
 public RunFunctionCommand(string assemblyFilename, string _namespace, string classname, string functionName, ArgumentList arguments, List<UserOptionValues> userOptions, string aaprojXml, bool isStaticMethod)
 {
     AssemblyFilename = assemblyFilename;
     Namespace = _namespace;
     Classname = classname;
     FunctionName = functionName;
     Arguments = arguments;
     UserOptions = userOptions;
     AaprojXml = aaprojXml;
     IsStaticMethod = isStaticMethod;
 }
Пример #3
0
 public RunFunctionCommand(string assemblyFilename, string _namespace, string classname, string functionName, ArgumentList arguments, List <UserOptionValues> userOptions, string aaprojXml, bool isStaticMethod)
 {
     AssemblyFilename = assemblyFilename;
     Namespace        = _namespace;
     Classname        = classname;
     FunctionName     = functionName;
     Arguments        = arguments;
     UserOptions      = userOptions;
     AaprojXml        = aaprojXml;
     IsStaticMethod   = isStaticMethod;
 }