/*     #region OnBreakPointAction enum

             public enum OnBreakPointAction
             {
                 Stop,
                 Continue,
                 StepOver,
                 StepInto,
                 StepOut
             }

             #endregion*/



        //public bool handleBreakpoints = true;


        //public OnBreakPointAction onBreakPointAction = OnBreakPointAction.Continue;
        //public bool logOnBreakpoint = true;
        //public MDbgEngine mdbgEngine;
        //public MDbgProcess mdbgProcess;
        //private int iStepCount;



        public O2MDbgBreakPoint(O2MDbg _o2MDbg)
        {
            o2MDbg = _o2MDbg;

            //mdbgProcess = o2MDbgOLD.mdbgProcess;
            //  mdbgEngine = o2MDbgOLD.mDbgEngine;

            //o2MDbgOLD.mdbgProcess.CorProcess.OnBreakpoint += CorProcess_OnBreakpoint;
            //o2MDbgOLD.mdbgProcess.CorProcess.OnBreakpointSetError += CorProcess_OnBreakpointSetError;
            //    o2MDbgOLD.mdbgProcess.CorProcess.OnStepComplete += (CorProcess_OnStepComplete);
        }
示例#2
0
        /*     #region OnBreakPointAction enum
         *
         *   public enum OnBreakPointAction
         *   {
         *       Stop,
         *       Continue,
         *       StepOver,
         *       StepInto,
         *       StepOut
         *   }
         *
         #endregion*/



        //public bool handleBreakpoints = true;


        //public OnBreakPointAction onBreakPointAction = OnBreakPointAction.Continue;
        //public bool logOnBreakpoint = true;
        //public MDbgEngine mdbgEngine;
        //public MDbgProcess mdbgProcess;
        //private int iStepCount;



        public O2MDbgBreakPoint(O2MDbg _o2MDbg)
        {
            o2MDbg = _o2MDbg;

            //mdbgProcess = o2MDbgOLD.mdbgProcess;
            //  mdbgEngine = o2MDbgOLD.mDbgEngine;

            //o2MDbgOLD.mdbgProcess.CorProcess.OnBreakpoint += CorProcess_OnBreakpoint;
            //o2MDbgOLD.mdbgProcess.CorProcess.OnBreakpointSetError += CorProcess_OnBreakpointSetError;
            //    o2MDbgOLD.mdbgProcess.CorProcess.OnStepComplete += (CorProcess_OnStepComplete);
        }
示例#3
0
 public void test_createControlAndShowItOnSimpleForm()
 {
     const bool loadAsApplication = false;
     var o2Debuggger = new O2MDbg();
     var o2MDbgShellForm = o2Debuggger.showShellTestGuiAsNewWindowsForm(loadAsApplication);
     
     if (loadAsApplication == false)
     {
         Assert.That(o2MDbgShellForm != null, "o2MdbgShell == null");
         Assert.That(o2MDbgShellForm.Visible, "o2MdbgShell was not Visible!");
         o2MDbgShellForm.Close();
     }
     o2Debuggger.stopMDbg();
 }
示例#4
0
        public void startO2MDbgAndRunTestProcess()
        {
            o2MDbg = new O2MDbg();
            o2MDbg.o2MdbgIsReady.WaitOne(); // make sure the o2Mdbg is ready
            Assert.That(File.Exists(mockObjects_CompiledExe.PathToCreatedAssemblyFile),"Test exe file was not created");                        
            //  Processes.Sleep(1000);  // give it 1s to start the process           
            
            Assert.That(!o2MDbg.IsActive && !o2MDbg.IsRunning, "At this stage both o2MDbg.IsActive and o2MDbg.IsRunning should be false");
            Assert.That(o2MDbg.lastCommandExecutionMessage != "", "o2MDbg.lastCommandExecutionMessage was empty");

            // start test process
            o2MDbg.execSync(O2MDbgCommands.run(mockObjects_CompiledExe.PathToCreatedAssemblyFile));
            //Processes.Sleep(1000);  // give it 1s to start
            Assert.That(o2MDbg.IsActive && !o2MDbg.IsRunning, "At this stage both o2MDbg.IsActive should be true and o2MDbg.IsRunning should be false");
        }
示例#5
0
 public O2MDbgSessionData(O2MDbg _o2MDbg)
 {
     o2MDbg = _o2MDbg;
 }
示例#6
0
 public O2MDbgSessionData(O2MDbg _o2MDbg)
 {
     o2MDbg = _o2MDbg;
 }