Mono.Debugger.Debugger.Run C# (CSharp) Method

Run() public method

public Run ( DebuggerSession session ) : Process
session DebuggerSession
return Process
        public Process Run(DebuggerSession session)
        {
            CommandResult dummy;
            return Run (session, out dummy);
        }

Same methods

Debugger::Run ( DebuggerSession session, CommandResult &result ) : Process

Usage Example

示例#1
0
        public Process Start()
        {
            if ((debugger != null) || (main_process != null))
                throw new TargetException (TargetError.AlreadyHaveTarget);

            if (!IsScript)
                Print ("Starting program: {0} {1}", Options.File,
                       String.Join (" ", Options.InferiorArgs));

            try {
                debugger = new Debugger (config);

                new InterpreterEventSink (this, debugger);

                CommandResult result;
                current_process = main_process = debugger.Run (session, out result);
                current_thread = current_process.MainThread;

                Wait (result);

                return current_process;
            } catch (TargetException) {
                debugger.Dispose ();
                debugger = null;
                throw;
            }
        }
All Usage Examples Of Mono.Debugger.Debugger::Run