S
Saradhi
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) )
{
int processId = ((ExtensibilityEngine)m_ExtensibilityEngine).ProcessID;
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();
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
if ( !(applicationObject.Debugger.DebuggedProcesses == null) )
{
int processId = ((ExtensibilityEngine)m_ExtensibilityEngine).ProcessID;
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();
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