Here I am back with the same question again.
I am trying to attach my process to the .NET Debugger to debug my process.
and I am using the folliwng code.
if ( !(applicationObject.Debugger.DebuggedProcesses == null) )
{
// My process ID
int processId = ((ExtensibilityEngine)m_ExtensibilityEngine).Proce ssID;
foreach(Process p1 in applicationObject.Debugger.DebuggedProcesses )
if ( p1.ProcessID == processId )
return;
foreach(Process p1 in applicationObject.Debugger.LocalProcesses)
if ( p1.ProcessID == processId)
{
// Attach the ExEngine Object to the VS.NET Debugger
p1.Attach();
applicationObject.DTE.Debugger.CurrentProcess = p1;
return;
}
}
This code works well.
But the problem is it is very slow.
It is taking all the Debugging options such as CLR, Native, MS SQL, Script
and hence it is very slow because Native debugging is always slow.
Is there any way that we can specify one or more of the 4 options
individually?
-SARADHI