/// <summary>
 /// start new code coverage session by spawning a new process
 /// </summary>
 private void spawn()
 {
     isRunning_ = true;
     using (debugEngine_ = new ManagedCCDebugEngine())
     {
         debugEngine_.OnBreakPoint  += new DbgExceptionEventHandler(debugEngine_OnBreakPoint);
         debugEngine_.OnDbgEvent    += new DbgExceptionEventHandler(debugEngine_OnDbgEvent);
         debugEngine_.OnDbgAttached += new DbgAttachedEventHandler(debugEngine_OnDbgAttached);
         debugEngine_.debug(commandLine_, "");
         debugEngine_.run();
     }
     isRunning_ = false;
 }
 /// <summary>
 /// start new code covergage session by attaching to an existing process
 /// </summary>
 private void attach()
 {
     isRunning_ = true;
     using (debugEngine_ = new ManagedCCDebugEngine())
     {
         debugEngine_.OnBreakPoint  += new DbgExceptionEventHandler(debugEngine_OnBreakPoint);
         debugEngine_.OnDbgEvent    += new DbgExceptionEventHandler(debugEngine_OnDbgEvent);
         debugEngine_.OnDbgAttached += new DbgAttachedEventHandler(debugEngine_OnDbgAttached);
         bool retVal = debugEngine_.debugActiveProcess((uint)dbgProcess_.Id);
         retVal = debugEngine_.run();
     }
     isRunning_ = false;
 }
Beispiel #3
0
 /// <summary>
 /// start new code coverage session by spawning a new process
 /// </summary>
 private void spawn()
 {
     isRunning_ = true;
     using (debugEngine_ = new ManagedCCDebugEngine())
     {
         debugEngine_.OnBreakPoint += new DbgExceptionEventHandler(debugEngine_OnBreakPoint);
         debugEngine_.OnDbgEvent += new DbgExceptionEventHandler(debugEngine_OnDbgEvent);
         debugEngine_.OnDbgAttached += new DbgAttachedEventHandler(debugEngine_OnDbgAttached);
         debugEngine_.debug(commandLine_, "");
         debugEngine_.run();
     }
     isRunning_ = false;
 }
Beispiel #4
0
 /// <summary>
 /// start new code covergage session by attaching to an existing process
 /// </summary>
 private void attach()
 {
     isRunning_ = true;
     using (debugEngine_ = new ManagedCCDebugEngine())
     {
         debugEngine_.OnBreakPoint += new DbgExceptionEventHandler(debugEngine_OnBreakPoint);
         debugEngine_.OnDbgEvent += new DbgExceptionEventHandler(debugEngine_OnDbgEvent);
         debugEngine_.OnDbgAttached += new DbgAttachedEventHandler(debugEngine_OnDbgAttached);
         bool retVal = debugEngine_.debugActiveProcess((uint)dbgProcess_.Id);
         retVal = debugEngine_.run();
     }
     isRunning_ = false;
 }